Shutdown message
-
What message can be received by window when shut down or restart a pc ? Thanks.:( Shall we be friend?
WM_CLOSE Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
What message can be received by window when shut down or restart a pc ? Thanks.:( Shall we be friend?
But according to the MSDN ---> System Shutdown Messages The following messages are used with system shutdown. WM_ENDSESSION WM_QUERYENDSESSION Thanks Jitendra:)
-
But according to the MSDN ---> System Shutdown Messages The following messages are used with system shutdown. WM_ENDSESSION WM_QUERYENDSESSION Thanks Jitendra:)
-
but
WM_QUERYENDSESSION
is not sent by the system properly, but by an application that ask the system to shut down. then, the OS emitsWM_ENDSESSION
.
TOXCCT >>> GEII power
toxcct wrote: but WM_QUERYENDSESSION is not sent by the system properly, but by an application... The
WM_QUERYENDSESSION
message is definitely sent by the system in response to an application callingExitWindows()
orExitWindowsEx()
.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
toxcct wrote: but WM_QUERYENDSESSION is not sent by the system properly, but by an application... The
WM_QUERYENDSESSION
message is definitely sent by the system in response to an application callingExitWindows()
orExitWindowsEx()
.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
DavidCrow wrote: sent by the system in response to an application calling ExitWindows() yes, ok, but that is the same in the fact.
TOXCCT >>> GEII power
An application calls
ExitWindows[Ex]()
, and Windows responds by sending out aWM_QUERYENDSESSION
message. How is that the same? The application did not send the message, Windows did. :confused:
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
An application calls
ExitWindows[Ex]()
, and Windows responds by sending out aWM_QUERYENDSESSION
message. How is that the same? The application did not send the message, Windows did. :confused:
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
damn it, you don't understand, or you don't want to understand ??????? it is the same... of course they are not the same messages. i say it is the same to what i tried to explain before.
WM_QUERYENDSESSION
is sent because an application asked to shut down, instead thatWM_ENDSESSION
is sent when windows shuts off by itself. :suss:
TOXCCT >>> GEII power
-
damn it, you don't understand, or you don't want to understand ??????? it is the same... of course they are not the same messages. i say it is the same to what i tried to explain before.
WM_QUERYENDSESSION
is sent because an application asked to shut down, instead thatWM_ENDSESSION
is sent when windows shuts off by itself. :suss:
TOXCCT >>> GEII power
toxcct wrote: you don't understand... I understand fully, that is why I was correcting you. In your reply to Jitendra, you stated that, "...WM_QUERYENDSESSION is not sent by the system properly, but by an application..." Are you now denying this, or are you confused by what you stated versus what you actually meant? toxcct wrote: WM_QUERYENDSESSION is sent because an application asked to shut down... This much is factual, but only if you qualify it by adding that Windows sends the message, not the application. The application "asked to shut down" by calling
ExitWindows[Ex]()
.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
toxcct wrote: you don't understand... I understand fully, that is why I was correcting you. In your reply to Jitendra, you stated that, "...WM_QUERYENDSESSION is not sent by the system properly, but by an application..." Are you now denying this, or are you confused by what you stated versus what you actually meant? toxcct wrote: WM_QUERYENDSESSION is sent because an application asked to shut down... This much is factual, but only if you qualify it by adding that Windows sends the message, not the application. The application "asked to shut down" by calling
ExitWindows[Ex]()
.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)