1. Home
  2. Computing & Technology
  3. Delphi Programming

Disable ALT+TAB, CTRL+ESC, CTRL+ALT+DEL

By Zarko Gajic, About.com Guide

If you wish to disable those key combinations while your application is running call SystemKeys. When you call SystemKeys, if Disable is True, the keys will be disabled, False otherwise.

Note: the code does NOT work under Win NT systems (XP, 2000)

For more info check the "Big brother Delphi code toolkit"

~~~~~~~~~~~~~~~~~~~~~~~~~
procedure SystemKeys(Disable: Boolean) ;
  var OldVal : LongInt;
begin
  SystemParametersInfo(SPI_SCREENSAVERRUNNING,
                       Word(Disable), @OldVal, 0) ;
end;
~~~~~~~~~~~~~~~~~~~~~~~~~

Delphi tips navigator:
» Hide Title Bar
« IsTrueTypeFont

Explore Delphi Programming
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming
  4. Coding Delphi Applications
  5. Delphi Tips and Tricks
  6. 2000 Delphi Tips
  7. Disable ALT+TAB, CTRL+ESC, CTRL+ALT+DEL

©2009 About.com, a part of The New York Times Company.

All rights reserved.