Click to See Complete Forum and Search --> : Locking the keyboard


May 4th, 1999, 09:45 AM
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.

Paul Voight
May 4th, 1999, 10:18 AM
Try using PreTranslateMessage

if( pMsg->message == WM_KEYDOWN && m_MyFlag == True)
{
return TRUE;
}

May 5th, 1999, 03:24 AM
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.