0

How to block Ctrl+Alt+Delete key combination on Windows 7 with Delphi or anyway

Abhishek
  • 6,912
  • 14
  • 59
  • 85

1 Answers1

3

You cannot do this. The Secure Attention Sequence (the official Windows name for CTRL+ALT+DEL) is handled in kernel mode and it would be a humungous security hole if user mode apps were able to change what happens when the user sends the SAS.

Andreas Rejbrand
  • 105,602
  • 8
  • 282
  • 384
David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
  • 1
    I'm not sure about NT6 but in NT5 (Win2k, WinXP) there is nothing special about Ctrl+Alt+Del other than that it was registered as a global hotkey (via RegisterHotKey()) by the SAS window in winlogon.exe, which is a user-mode process. You could easily intercept it once you injected your code into that process. – Moritz Beutel Jul 31 '12 at 14:07
  • Sure, when WinLogon still used GINA DLLs to process SAS notifications. That went away in Windows Vista. – Remy Lebeau Jul 31 '12 at 23:11