Re: WM_ENDSESSION: See if its a restart or shutdown

From: WRH (no_spam_here_at_videotron.ca)
Date: 12/03/04

  • Next message: Dave Patrick: "Re: Number of locks on Win2000 Server/Database Crash"
    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
    >
    >
    >
    >


  • Next message: Dave Patrick: "Re: Number of locks on Win2000 Server/Database Crash"

    Relevant Pages

    • Re: WM_ENDSESSION: See if its a restart or shutdown
      ... I don't know if a windows service gets windows broadcast messages ... message and stop the shutdown process if necessary ... > I need my Windows Service to know when the system is shutting down. ... > has allso to know if its a reboot or a shutdown!!! ...
      (microsoft.public.win2000.applications)
    • Re: WM_ENDSESSION: See if its a restart or shutdown
      ... I don't know if a windows service gets windows broadcast messages ... message and stop the shutdown process if necessary ... > I need my Windows Service to know when the system is shutting down. ... > has allso to know if its a reboot or a shutdown!!! ...
      (microsoft.public.win32.programmer.ui)
    • Python script running as Windows service: Clean shutdown
      ... I'm trying to run a Python script as a Windows service with a defined ... I understand that for a clean shutdown of a Windows service one would ... eclient = Eclient ...
      (comp.lang.python)
    • Re: Handle STOP in a multi-threaded Windows service
      ... > I've written a Windows Service which has ... > - several listeners threads which spawn worker threads based on ... > Does Windows wait for all threads to terminate in a given timespan, ... issuing a Thread.Abort as part of the CLR's orderly shutdown procedure. ...
      (microsoft.public.dotnet.general)
    • Re: 8.1.7 shutdown
      ... > Try increasing timeout for Windows service using "oradim" utility. ... shutdown mode is immediate. ... this problem was a bug for which some patches ...
      (comp.databases.oracle.server)

    Loading