Board index » cppbuilder » Detecting Win shutdown/restart

Detecting Win shutdown/restart


2005-01-14 03:11:46 AM
cppbuilder84
I know that this has been discussed in this (or API) NG but
I simply cannot find the thread.
How can my app (which is usually in tray) detect Windows
Shutdown/Restart that I can close some handles by myself?
What message should I catch in my WndProc?
Best regards,
Vladimir Stefanovic
 
 

Re:Detecting Win shutdown/restart

"Vladimir Stefanovic" < XXXX@XXXXX.COM >wrote in message
Quote
How can my app (which is usually in tray) detect Windows
Shutdown/Restart that I can close some handles by myself?
Intercept the WM_QUERYENDSESSION and WM_ENDSESSION messages.
Gambit
 

Re:Detecting Win shutdown/restart

Quote
Intercept the WM_QUERYENDSESSION and
WM_ENDSESSION messages.
That's it! Thanks...
Best regards,
Vladimir Stefanovic
 

{smallsort}