Hello,
   I am writing this utility to hook on the windows waiting for a System Shutdown.
So far, I can detect system shutdown methods (Logoff, Restart, Shutdown) by Microsoft.Win32.SystemEvents.SessionEnding event.
However, because Hibernate & Stand by don't send the WM_QUERYENDSESSION, the event above doesn't detect it.
Is there anyway to detect those 2 events & prevent them from happening if the user chooses not to ?
Thanks,
Remon