How can I tell if windows has any command shutdown
scheduled? There is the event that tells me when someone activates the command (msdn.microsoft.com/en-us/library/microsoft.win32.systemevents.sessionending.aspx), but my program does not run in the background all the time, I wanted to know the moment I need it if there is any scheduling or not, as a method that returns this to me, is there any? (In case I need this for a simple shutdown program I'm doing, then he needs to know to leave the cancel option available as well)