Thread: "CTRL+ALT+DEL" Message?

  1. #1
    Beginning game programmer Petike's Avatar
    Join Date
    Jan 2008
    Posts
    64

    Question "CTRL+ALT+DEL" Message?

    Hi all,
    let's say I press the "CTRL+ALT+DEL" combination in the middle of program and terminate it explicitly.
    Is there sent any Message to program (like WM_QUIT_WITH_CTRLALTDEL, :-) ) before the program ends or is the program "roughly" terminated without any cleanup?
    (Or how could I handle the "CTRL+ALT+DEL" Message?)

    Thanks.

    Petike

  2. #2
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    If you terminate it under "Applications" tab, WM_QUIT will be sent, and if it doesn't close in some time, it will prompt the user if it wants to terminate it roughly. Under the "Processes" tab, programs will always be roughly terminated.

  3. #3
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Ctrl-Alt-Del doesn't end a program. It just brings up a set of options that you can choose such as "Lock Computer", "Switch User", "Log off", "Change Password" & "Task Manager".
    It's Task Manager (or other programs like it) that you use to kill a program.

  4. #4
    Registered User
    Join Date
    Apr 2007
    Posts
    137
    Quote Originally Posted by maxorator View Post
    If you terminate it under "Applications" tab, WM_QUIT will be sent
    No, not WM_QUIT.

  5. #5
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Quote Originally Posted by cpjust View Post
    Ctrl-Alt-Del doesn't end a program. It just brings up a set of options that you can choose such as "Lock Computer", "Switch User", "Log off", "Change Password" & "Task Manager".
    It's Task Manager (or other programs like it) that you use to kill a program.
    On many machines (including mine), CTRL+ALT+DEL pops up Task Manager directly. And that's exactly what the OP meant.
    Quote Originally Posted by Alex31 View Post
    No, not WM_QUIT.
    My bad. It's WM_CLOSE. WM_QUIT is for application's internal use. But if you handle WM_CLOSE, make sure you call DefWindowProc after that.
    Last edited by maxorator; 08-17-2008 at 03:40 AM.

  6. #6
    Chinese pâté foxman's Avatar
    Join Date
    Jul 2007
    Location
    Canada
    Posts
    404
    I just want to add, another way of opening the task manager is with the key combination "Ctrl+Shift+Esc".
    I hate real numbers.

  7. #7
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Ya, that one's guaranteed to bring it up. Ctrl+alt+del doesn't bring up Task Manager under Vista either, but ctrl+shift+esc does.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  8. #8
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    I accidentally typed Ctrl-Alt-Esc instead of Ctrl-Shft-Esc. It didn't appear to do anything, although then I found that my IE window was completely locked up and unresponsive to anything! LOL!
    Is it just me, or does that happen for other people too?
    I'm running Vista Ultimate x64.

  9. #9
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Quote Originally Posted by cpjust View Post
    I accidentally typed Ctrl-Alt-Esc instead of Ctrl-Shft-Esc. It didn't appear to do anything, although then I found that my IE window was completely locked up and unresponsive to anything! LOL!
    Is it just me, or does that happen for other people too?
    I'm running Vista Ultimate x64.
    You poor IE user.

  10. #10
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I don't know. It just switched window, that's all.
    Who uses IE these days? It's at 60% market share these days. Time to switch, buddy!
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  11. #11
    Registered User
    Join Date
    Aug 2007
    Posts
    40
    not that it matters that much but ctrl+alt+delete will get you task manager immediately in xp if you are using the welcome screen, if you change it to a login screen like it was in 2000, you will get a window with options. In Vista I get a set of options and I'm using some sort of welcome screen I think.

  12. #12
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by Elysia View Post
    I don't know. It just switched window, that's all.
    Who uses IE these days? It's at 60% market share these days. Time to switch, buddy!
    Switch to what? Firefox looks like crap. Most pages are still designed for IE anyways.

  13. #13
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Ctrl-Alt-Esc does nothing for me (Win 2K right now).

    From what I've experienced, IE has superior script support that Firefox, Netscape, and Opera. Other than that, yeah it's junk. Version 7 and all.

    About the OT...

    There is no way for a process to detect it's termination (that would actually defeat the whole purpose of termination). Something you can do however, is make a separate process monitor the target, watching for termination.

  14. #14
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Quote Originally Posted by cpjust View Post
    Switch to what? Firefox looks like crap. Most pages are still designed for IE anyways.
    People who design pages for a specific browser should be burned alive. Web sites should be designed by the W3 standards and then checked for problems with different browsers. Luckily I don't see much of these sites coded by wannabe developers who don't know how web programming works.

    "Looks like crap"... ever heard of themes?

    And there is always Opera.

  15. #15
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by Yarin View Post
    From what I've experienced, IE has superior script support that Firefox, Netscape, and Opera. Other than that, yeah it's junk. Version 7 and all.
    I wouldn't be surprised. It has a lot of non-standard crap, including jscript.
    And I can't seriously understand how people don't like the look of FF compared to IE, since the design is pretty much identical.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Strange string behavior
    By jcafaro10 in forum C Programming
    Replies: 2
    Last Post: 04-07-2009, 07:38 PM
  2. Message class ** Need help befor 12am tonight**
    By TransformedBG in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2006, 11:03 PM
  3. Making a script language?
    By Blackroot in forum Game Programming
    Replies: 10
    Last Post: 02-16-2006, 02:22 AM
  4. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 05:48 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM