Trapping windows key and ctrl alt delete

BlitzPlus Forums/BlitzPlus Programming/Trapping windows key and ctrl alt delete

Ben M(Posted 2008) [#1]
I'm writing a game for kids, and it runs in full-screen mode, and I want to trap all key presses so they don't hit ctrl alt delete, ctrl esc, alt tab, or the windows key.

Is this possible? Can it be done without 3rd party DLL's?


Sauer(Posted 2008) [#2]
Interesting question, I was wondering the same myself actually.


LamptonWorm(Posted 2009) [#3]
Hi, interested also, did you find a way to do this?

Cheers,
LW


Ginger Tea(Posted 2009) [#4]
each key is a valid scan code
if key ctrl do nothing etc
but locking the user out of ctrl+alt+del or alt+tab and any other way of breaking out of a non responsive program is irksome

assuming the program never breaks locking you out of said retreval methods, you could have a parental lock key that the average kid would have no need to press eg scroll lock and if that has been pressed it opens up the use of ctrl etc for 30 seconds


schilcote(Posted 2009) [#5]
Blocking/trapping ctrl-alt-delete is (supposed to be) impossible. The keypress is sent directly from some very low-level process (maybe the BIOS, but I think it's the kernel) to WinLogon.exe, which means that ctrl-alt-delete is never registered by any other process.


Beaker(Posted 2009) [#6]
It is possible, discussion here:
http://www.autohotkey.com/forum/topic15702.html