How to tell if a PC is rebooting
I have a c# app the kicks off some other processes and those processes can kick off a reboot. Problem is the reboot is greatly delayed because the first c# app is still running. It will forcibly get rebooted eventually, but it delays things by about 5-8min. So I need to put in some kind of check/hook in the c# app to see if the PC is starting a reboot process. Any ideas?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Nov 29, 2011, 12:01 AM EST
http://msdn.microsoft.com/en-us/library/windows/desktop/aa376890(v=vs.85).aspx