Click to See Complete Forum and Search --> : Blocking CTRL+ALT+DEL


May 12th, 1999, 05:59 AM
Hello,

Does anyone know how I can block the CTRL+ALT+DEL and ALT+TAB via a VC++ app ?

Ideally I need to trap these keystrokes and then ignore them.

Thanks,

Simon.

swinfough
July 23rd, 1999, 10:49 AM
I don't believe this is possible. I remember reading somewhere that for a Windows platform (9x & NT, especially NT) the kernel identifies this key sequence and handles it. Just think if you could trap this sequence, you could bypass the security of NT. Not to mention all of the fake login programs that would pop up. You would not know if you are logging into the OS or someone's fake login program; which is sending your username and password to some e-mail address.

HTH
Steve

Steve Winfough, MCSD
swinfo@usa.net

ChristianM
July 23rd, 1999, 11:04 AM
try this

SystemParametersInfo (SPI_SCREENSAVERRUNNING, 1, &nOldVal, 0);//Turns keys off
SystemParametersInfo (SPI_SCREENSAVERRUNNING, 0, &nOldVal, 0);//Turns keys on