Thread: "CTRL+ALT+DEL" Message?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  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
    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.

  12. #12
    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.

  13. #13
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by maxorator View Post
    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.
    Themes? I've heard that word used in several different ways. Which definition of theme are you referring to?
    A lot of pages I look at in other browsers have some of their fonts all messed up.
    I'm not saying I like everything about IE; but for me, I like more of its features than other browsers that I've seen.

  14. #14
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by Yarin View Post
    >> I wouldn't be surprised. It has a lot of non-standard crap, including jscript.
    Standard or not. A good browser's purpose isn't to be to proud to display non-standard stuff, rather it's there to display as much and as accurately as it possibly can.
    Yes, I agree this is a browser's purpose.

    Quote Originally Posted by cpjust View Post
    Themes? I've heard that word used in several different ways. Which definition of theme are you referring to?
    A lot of pages I look at in other browsers have some of their fonts all messed up.
    I'm not saying I like everything about IE; but for me, I like more of its features than other browsers that I've seen.
    Themes skin and change the look of your browser, of course.
    I have failed to see messed up fonts on pages, but some pages are maligned and a few do not work. But the majority does work.
    For those that doesn't, the trusty IE tab takes care of the work.
    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.

  15. #15
    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.

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