You can detect when the user is logging off or shutting windows down by
trapping WM_ENDSESSION.


                -----Original Message-----
                From:   Wilfred Verkley
[mailto:[EMAIL PROTECTED]]
                Sent:   Friday, 29 January 1999 11:22
                To:     Multiple recipients of list delphi
                Subject:        [DUG]:  Detecting a Windows Shutdown

                This question may have been asked before but...

                Does anyone know how to detect if windows is shutting
down?

                I want to display a warning/confirmation message when
the user shuts down a
                specific application, but not have this message
displayed when windows
                itself is being shut down.

                Cheers,

                > .-->
                > 
                > Wilfred Verkley
                > Software Developer
                > Software Development
                > Wang NZ Ltd
                > DDI 9-3087788
                > Fax 9-3064600
                > Email [EMAIL PROTECTED]
                > 
        
------------------------------------------------------------------------
---
                    New Zealand Delphi Users group - Delphi List -
[EMAIL PROTECTED]
                                  Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to