-
August 14th, 2012, 06:45 PM
#1
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.
-
August 15th, 2012, 03:56 AM
#2
Re: Disabling/capturing windows shortcut keys
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.
Victor Nijegorodov
-
August 15th, 2012, 04:11 AM
#3
Re: Disabling/capturing windows shortcut keys
Same about Ctl + Alt + Del.
Nope. AFAIK, windows itself is the only one that is allowed to capture CtrlAltDel (for security reasons).
-
August 15th, 2012, 07:17 AM
#4
Re: Disabling/capturing windows shortcut keys
Why would you want to do that?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|