How do I trap Windows key, Alt+Tab, and Ctrl+Alt+Delete in a Windows application using C#?
Yes, you can (using a custom GINA). But not in C#.
Kramii
2010-02-03 09:47:56
A:
AFAIK Ctrl + Alt + Delete cannot be captured using an application.
See this question to get some more idea: http://stackoverflow.com/questions/1292165/how-to-lock-the-keyboard-and-mouse-for-a-windows-application-c
Shoban
2009-08-28 12:30:51
+3
A:
You can capture Ctrl-Alt-Delete. But you need to implement your own GINA dll which is loaded by Winlogon.
You'll need to code this up in C or C++ as it needs to be a native DLL.
Jan Bannister
2009-08-28 12:36:08
+1
A:
As Jan stated, you can't capture CTRL-ALT-DEL without writing your own GINA.
For the Windows or ALT-TAB keys, you can look at these for help:
Capturing Keystrokes without Focus (SO near-duplicate)
Hooks (low-level, but will explain what you need for the P/Invoke)
Erich Mirabal
2009-08-28 12:46:33