Click here to Skip to main content
6,821,293 members and growing! (18,432 online)
Email Password   helpLost your password?
Desktop Development » Miscellaneous » Beginners     Advanced License: The Code Project Open License (CPOL)

Disable Ctrl+Alt+Del Windows XP

By gabrielmaldi

A very simple way of doing it.
VB6, C++ (VC6), C, VB, ASM, Windows (WinXP), Win32, Visual-Studio, MFC, COM
Posted:12 Sep 2008
Views:11,568
Bookmarked:15 times
Unedited contribution
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
10 votes for this article.
Popularity: 1.27 Rating: 1.27 out of 5
8 votes, 80.0%
1
1 vote, 10.0%
2

3

4
1 vote, 10.0%
5

Introduction

This is a very simple way of disabling the Ctrl+Alt+Del combination in Windows XP or running the program of your choice thourgh the all-migthy Registry.

Background  

I spent the last night programming a lot of things and reading many articles and I found tons of people asking for a way of locking the Windows desktop. A lot of articles talk about locking the mouse and keyboard but they all leave something behind: the Task Manager. Only a few articles addressed the subject. This article shows a list of ways of achieving this and thoroughly discusses one and presents the source. The two most known ways are subclassing the SAS (Secure Attention Sequence) window and writing a Gina dll. These are indeed really hard and time consuming tasks (the latter one being almost impossible).

Using the code  

Using the Registry editor of your choice (for example regedit.exe) navigate to:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe

Now create a new alphanumerical value called Debugger and change its data to the path of the program you want to run with Ctrl+Alt+Del  (try calc.exe or notepad.exe for instance).

If you want no action just change its data to something invalid (a space, the string "·$·%", "dontruntaskmanager"... you get the point).

And thats it! No SAS window sublcassing no Gina dll... It just can't get simpler. 

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

gabrielmaldi


Member

Location: Uruguay Uruguay

Other popular Miscellaneous articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 11 of 11 (Total in Forum: 11) (Refresh)FirstPrevNext
GeneralMy vote of 1 PinmemberC.V.Vikram1:17 3 Sep '09  
General[tut] C# Disable CTRL-ALT-DEL, ALT-TAB, ALT-F4, Start Menu and so on… Pinmemberjammmie9994:04 19 Jul '09  
GeneralNot on Vista with UAC Enabled as Non-Admin user. PinmemberBlake Miller12:45 12 Sep '08  
GeneralRe: Not on Vista with UAC Enabled as Non-Admin user. Pinmembergabrielmaldi11:15 15 Sep '08  
GeneralRe: Not on Vista with UAC Enabled as Non-Admin user. PinmemberBlake Miller14:34 15 Sep '08  
Generalmore easiest way Pinmemberonly_jack11:33 12 Sep '08  
GeneralRe: more easiest way PinmemberBlake Miller12:44 12 Sep '08  
GeneralRe: more easiest way [modified] Pinmemberonly_jack5:09 13 Sep '08  
GeneralRe: more easiest way Pinmembergabrielmaldi18:07 15 Sep '08  
GeneralSample PinmemberLuiz Salamon10:16 12 Sep '08  
GeneralRe: Sample Pinmembergabrielmaldi11:09 15 Sep '08  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads.

PermaLink | Privacy | Terms of Use
Last Updated: 12 Sep 2008
Editor:
Copyright 2008 by gabrielmaldi
Everything else Copyright © CodeProject, 1999-2010
Web10 | Advertise on the Code Project