Detecting the type of shutdown

Detecting the type of shutdown

am 28.11.2007 16:45:04 von JStreger

I am using C#.NET 2003, and my form has a WndProc override to capture the
windows messages. I can halt the shutdown the user initiated and run my code,
but I wanted to see if there was a way to determine what type of shutdown
(logoff, restart, poweroff, forced, etc.) the user initiated so I can
reinitialize that particular shutdown after running my code. Any thought on
how to do this?


--
*********************
J Streger
MS Office Master 2000 ed.
MS Project White Belt 2003

User of MS Office 2003