Windows Shutdown Properties

Visual Studio360
Let's say I had an app running in the background watching for a shutdown

command (or logoff) via WindowProc()

I can get the difference between Shutdown and Logoff modes - but have not

found any resources as opposed to finding out the difference between

shutdown and reboot. (Both trigger shutdown, but I can't find API or

registry locations indicating which was selected.)



Any thoughts here would be highly appreciated!



Thanks,



<TJ>


-