Re: Windows\App shut down? (OT?)
Peter Ritchie <[email protected]> Wed, 2 Jan 2008 15:48:31 -0500
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
At the the Windows layer an application (or more specifically the application's message pump) is sent WM_QUERYENDSESSION and WM_ENDSESSION message when a user is attempting to and accomplishing shut down. In .Net the same is accomplished via the Microsoft.Win32.System.Events.SessionEnding and .SessionEnded events [1] [1] http://msdn2.microsoft.com/en- gb/library/microsoft.win32.systemevents.sessionended(VS.80).aspx