CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10
  1. #1
    Join Date
    May 1999
    Location
    Fort Worth Texas
    Posts
    614

    Question Can Ctrl-Alt-Delete being caught and handled?

    Is it possible to catch the combined key presses of Ctrl-Alt-Delete so that event can be handled?

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: Can Ctrl-Alt-Delete being caught and handled?

    Here is some reading http://www.codeproject.com/Articles/...Task-List-on-W

    There are quite a lot of threads regarding this issue. Why you maybe should rethink that strategy, alternative solutions and so on. One of them http://social.msdn.microsoft.com/For...c-005ed8c1869f
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  3. #3
    Join Date
    May 1999
    Location
    Fort Worth Texas
    Posts
    614

    Re: Can Ctrl-Alt-Delete being caught and handled?

    Thank you! Without going into deatils I want to use this on an internal Kiosk to trap Ctrl-Alt-Delete and shutdown the machine rather than let anyone have access. Starup always logs in a limited user and starts an application.

  4. #4
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Can Ctrl-Alt-Delete being caught and handled?

    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  5. #5
    Join Date
    May 1999
    Location
    Fort Worth Texas
    Posts
    614

    Smile Re: Can Ctrl-Alt-Delete being caught and handled?

    Thanks. I tried Jared Heinrichs instructions and like many others it just caused problems

  6. #6
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Can Ctrl-Alt-Delete being caught and handled?

    Isn't there a way it can be disabled under user permissions of the OS?

    Edit: I should say isn't there a way to disable taskmanager for the given account or group so as to render the CAD useless.
    Last edited by DataMiser; February 21st, 2012 at 05:23 PM.
    Always use [code][/code] tags when posting code.

  7. #7
    Join Date
    May 1999
    Location
    Fort Worth Texas
    Posts
    614

    Smile Re: Can Ctrl-Alt-Delete being caught and handled?

    None that I can find.

  8. #8
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Can Ctrl-Alt-Delete being caught and handled?

    I edited my previous post. I was really referring to the the key sequence popping up task manager which you should be able to disable. The only other thing the key sequence would normally do is restart the machine which is a wanted behaviour I take it so that may be the answer.
    Always use [code][/code] tags when posting code.

  9. #9
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Can Ctrl-Alt-Delete being caught and handled?

    Most KIOSK's can use REMOTE DESKTOP to log into a SERVER. They see only ONE app, and their only action available is to go back to the WELCOME (login) screen
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  10. #10
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: Can Ctrl-Alt-Delete being caught and handled?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured