Re: WM_ENDSESSION: See if its a restart or shutdown
From: WRH (no_spam_here_at_videotron.ca)
Date: 12/03/04
- Previous message: Bart Steur: "Number of locks on Win2000 Server/Database Crash"
- In reply to: Thomas Johansen: "WM_ENDSESSION: See if its a restart or shutdown"
- Next in thread: Thomas Johansen: "Re: WM_ENDSESSION: See if its a restart or shutdown"
- Reply: Thomas Johansen: "Re: WM_ENDSESSION: See if its a restart or shutdown"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 3 Dec 2004 08:35:56 -0500
Hello
I don't know if a windows service gets windows broadcast messages
but a standard windows app can process the WM_QUERYENDSESSION
message and stop the shutdown process if necessary
Hope this helps
"Thomas Johansen" <thrawn[NO SPAM]@hest.com___KĘP> wrote in message
news:OIoT7vR2EHA.1524@TK2MSFTNGP09.phx.gbl...
> Hi
>
> I need my Windows Service to know when the system is shutting down. But it
> has allso to know if its a reboot or a shutdown !!!
>
> Is there any way of see this ?? I could use the WM_ENDSESSION and then see
> if its a restart or shutdown
>
> I need to tell some eksternal equipment, connect on the COM port, that the
> PC is shutting down of restarted !!!
> Thomas
>
>
>
>
- Previous message: Bart Steur: "Number of locks on Win2000 Server/Database Crash"
- In reply to: Thomas Johansen: "WM_ENDSESSION: See if its a restart or shutdown"
- Next in thread: Thomas Johansen: "Re: WM_ENDSESSION: See if its a restart or shutdown"
- Reply: Thomas Johansen: "Re: WM_ENDSESSION: See if its a restart or shutdown"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|