Disabling/capturing windows shortcut keys
Hey there
I have a Windows applications written in C++ using Win32 API's.
The problem am facing now is, if the user presses the Alt + F4 key the application will close.
Is there a way of disabling that via the app itself?
Like capturing the windows shortcut key and then do nothing?
Same about Ctl + Alt + Del.
Is it possible to disable that?
How can i capture these key presses in my app?
Thanks in advance.
Re: Disabling/capturing windows shortcut keys
Quote:
Originally Posted by
Don Guy
Hey there
I have a Windows applications written in C++ using Win32 API's.
The problem am facing now is, if the user presses the Alt + F4 key the application will close.
Is there a way of disabling that via the app itself?
Yes. You have to handle WM_SYSCOMMAND message with SC_CLOSE parameter.
Re: Disabling/capturing windows shortcut keys
Quote:
Same about Ctl + Alt + Del.
Nope. AFAIK, windows itself is the only one that is allowed to capture CtrlAltDel (for security reasons).
Re: Disabling/capturing windows shortcut keys
Why would you want to do that?