Thread: Disabling ctrl+alt+del?

  1. #1
    Registered User Nippashish's Avatar
    Join Date
    Sep 2002
    Posts
    34

    Disabling ctrl+alt+del?

    I'm looking for a way to temporarily disable ctrl+alt+del on Windows XP using the win32 api. (Acutally I'm trying to disable keyboard input entirely, but I've managed to intercept everything except ctrl+alt+del). I'm not even sure if this is possible in Windows XP, as everything that comes up in google seems to work only on 95/98, but I thought I'd ask here before giving up.

  2. #2
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    I'm fairly sure it's not easy. One of the threads that came up from a quick board search:

    http://cboard.cprogramming.com/showt...t=ctrl+alt+del
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    Try this it's a little way down the page.

  4. #4
    Registered User stuart_cpp's Avatar
    Join Date
    Apr 2006
    Location
    UK
    Posts
    31
    Why would you want to delete Ctrl+Alt+Delete??

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > I'm looking for a way to temporarily disable ctrl+alt+del on Windows XP using the win32 api
    Are you going to tell the user that you're going to do it?
    Why not just a popup asking the user not to do it, and stating why they shouldn't?

    Disabling the last remaining route to get some control back over some errant process seems unwise to me.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  6. #6
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    Disabling CTRL+ALT+DEL can be necercary in some cases for example in a program that is designed to be the only thing the user can use on a public computer.

  7. #7
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    IMO, setting up good security would be better than disabling ctrl+alt+del (or any escape sequence for that matter)

    hell, if I'd been working at a public computer and I needed to restart it (and had no access to ctrl+alt+delete)... even if I worked there... I'd just yank the plug if something went wrong, and we all know ctrl+alt+delete'ing your way to a reboot is better than flipping the switch
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  8. #8
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Is it even possible with WinXP to disable ctrl+alt+del? I've noticed that in Windows 98 I Ctrl+Alt+Del has no effect in some games where I can't even use Alt+Tab, but I've never seen that Ctrl+Alt+Del doesn't work in WinXP...

  9. #9
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    Try pressing it when your computer is locked.

  10. #10
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    What do you mean by locked?

  11. #11
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    Windows Key + L will lock the workstation. If you press CTRL+ALT+DEL at this point it won't work to prevent people bypassing this screen.

  12. #12
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    This is probably a built-in thing in Windows so you can't do it yourself. You can't do anything in your programs that Windows can.

  13. #13
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    How it works is briefly described in the link I posted. CTRL+ALT+DEL causes a function in a dll to be called you can provide your own dll and a do nothing function.

  14. #14
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    This might help you.

    In XP, you can have multiple desktops. The Winlogon desktop is one of them and is special in a way that both logon and lock functions are running there. Pressing Ctrl-Alt-Del is switching you to this desktop, which is why pressing it while in this desktop ( locked/ login screen ) will not switch desktops as usual.

    Have you ever wanted to kill a CPU hogging task and cursed XP because you can switch to that desktop and it's running fine, but the taskmanager you need to kill the process will open in your original desktop and will be slow and/or unresponsive ? You can start processes in other desktops. While starting a taskmanager in the WinLogOn desktop is probably a barn-sized security hole, it's possible and very comfortable to work with
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Ctrl Alt Del
    By cboard_member in forum A Brief History of Cprogramming.com
    Replies: 27
    Last Post: 07-20-2005, 07:36 AM
  2. how to capture CTRL, SHIFT and ALT ?
    By goldenrock in forum C Programming
    Replies: 3
    Last Post: 11-06-2003, 01:20 AM
  3. Trapping Ctrl Alt Delete
    By emus21 in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 09-17-2003, 12:10 PM
  4. how to trap Ctrl + Alt + Del
    By samudrala_99 in forum Windows Programming
    Replies: 5
    Last Post: 12-16-2002, 01:01 AM
  5. Ctrl + Alt +Delete
    By golfinguy4 in forum Windows Programming
    Replies: 4
    Last Post: 10-27-2002, 07:46 PM