-
Locking the keyboard
Hello,
Does anybody know if it is possible to lock the keyboard from a VC++ program ?
I actually need to lock the keyboard and completely stop any keypresses so just handling keypresses within the code is not an option.
Also, can other system settings be changed via a VC++ program ?? - i.e. the screen saver ?
Thanks,
S.
-
Re: Locking the keyboard
Try using PreTranslateMessage
if( pMsg->message == WM_KEYDOWN && m_MyFlag == True)
{
return TRUE;
}
-
Re: Locking the keyboard
I can't use this because I need to stop ALL keyboard activity. This wouldn't catch CTRL+ALT+DEL for instance would it ?
Simon.