rw104 wrote: I am catching the WM_QUERYENDSESSION message and returning a 1, which occording to the inline help should stop the shutdown process. Hum, I don't get the same info in MSDN: From MSDN, Platform SDK: Windows System Information "Return Values If an application can terminate conveniently, it should return TRUE; otherwise, it should return FALSE. Remarks By default, the DefWindowProc function returns TRUE for this message. Windows NT/2000/XP: When an application returns TRUE for this message, it receives the WM_ENDSESSION message and it is terminated, regardless of how the other applications respond to the WM_QUERYENDSESSION message. Windows 95/98/Me: After all applications return TRUE for this message, they receive the WM_ENDSESSION and they are terminated. " HTH, K.
And I'm talking to myself at night because I can't forget Back and forth through my mind Behind a cigarette