Trapping Windows Shutdown and Cancel the shutdown...
Hi,
Use WM_QUERYENDSESSION for system shutdown in WndProc system function.
When that message is received, return 0, pass the WM_CANCELMODE message
to that window message and then shutdown on your own by using
ExitWindowEx Api .
................
thanks
