6Feb/090
Is there is any way to catch a Windows shutdown event and disable it?
When system is shutting down, it sends WM_POWERBROADCAST to all top level windows to perform there Pre-Shutdown/cleanup task and close themselves gracefully.
Now, if you want to stop power off, you have to return BROADCAST_QUERY_DENY. It would halt your system from shutting down