Link to home
Start Free TrialLog in
Avatar of pman
pman

asked on

how to disable Alt+F4 function???

I need to disable the function of the ALT+F4 shortcut. The user shoultn't be able to close the appplication with it. How can I do this?
Avatar of lortega
lortega

call SystemParametersInfo with SPI_SETSCREENSAVEACTIVE      as first parameter...
Avatar of pman

ASKER

Sorry! But I don't understand this comment. Where can I find SystemParametersInfo and what does it mean. The same with SPI_SETSCREENSAVEACTIVE, ...
I'm a beginner in Delphi!

ASKER CERTIFIED SOLUTION
Avatar of inthe
inthe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pman

ASKER

Sorry! But I don't understand this comment. Where can I find SystemParametersInfo and what does it mean. The same with SPI_SETSCREENSAVEACTIVE, ...
I'm a beginner in Delphi!

Avatar of pman

ASKER

Thank you! It works perfectly.