Shutdown and restart
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Hi all, I have a service that handles SERVICE_CONTROL_SHUTDOWN so it is notified of the shutdown in progess. I need to distinguish between a restart and a shutdown. Is there a way to do so? Thanx in advance. Best regards, Andrea :)
-
Hi all, I have a service that handles SERVICE_CONTROL_SHUTDOWN so it is notified of the shutdown in progess. I need to distinguish between a restart and a shutdown. Is there a way to do so? Thanx in advance. Best regards, Andrea :)
Look at the
WM_QUERYENDSESSION
andWM_ENDSESSION
messages.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen