How to detect Ctrl-Alt-Del before or after OS detection?

I need to initialize a variable when the user press Ctrl-Alt-Del. Since this key combination is handled differently than the Windows Security dialog box, it appears immediately after it is pressed, and my program cannot determine whether it is pressed. I tried adding the code below to the KeyDown event, but it does not work.

if ( (Keyboard.Modifiers == (ModifierKeys.Control | ModifierKeys.Alt)) && Keyboard.IsKeyDown(Key.Delete)) { // Initialize a variable } 

If possible, how can I detect this key combination before the OS detects it? If not, how can I detect it after the OS?

+1
source share
2 answers

In short, you cannot.

+2
source

Even if you can, you should not , as changing the value of Ctrl-Alt-Del will confuse users.

I hope that this cannot be done without replacing the keyboard drivers, etc., since otherwise the application may make it impossible to access the task manager to kill the application.

0
source

All Articles