How to abort shutdown in Windows (XP|Vista) programatically?
- by Piskvor
I want to be able to detect and abort OS shutdown from my application, preferably by using the Windows API. I know that it is possible to do this manually using the command shutdown -a In the worst case, I could ShellExecute this, but I was wondering if there was a better way.
Also, how do I find out programatically that the OS is about to shut…