Delay Windows shutdown
-
DavidCrow wrote:
I usually open a dozen or so browser windows with various CP threads.
How do you do that? Can you email the code?
led mike
Is it urgent?
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Is it urgent?
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
I have a Windows service in which I need to detect the Windows shutdown event and, depending on what kind of processing I am doing at the time, delay the shutdown for a few seconds until my processing is complete. Can that be done? Any help appreciated.
Read carefully: Service Control Handler Function[^] Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Mark Salsbery wrote:
Is it urgent?
If you have to ask you don't understand anything about the codes
led mike
-
lol
-
-
Mark Salsbery wrote:
Fishing season is OPEN!
Didn't you get the memo? The season opens on January 1st at 00:00:00 and closes on December 31st at 24:59:59 Here's another[^]
led mike
:doh: Good one, thanks!
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Read carefully: Service Control Handler Function[^] Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
Mark Salsbery wrote:
Service Control Handler Function[^]
Sounds more like a candidate for the Buzzword hall of shame forum. :doh:
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
Mark Salsbery wrote:
Service Control Handler Function[^]
Sounds more like a candidate for the Buzzword hall of shame forum. :doh:
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
Rajesh R Subramanian wrote:
Mark Salsbery wrote: Service Control Handler Function[^] Sounds more like a candidate for the Buzzword hall of shame forum.
Nope :), it's actually a very concise description of the subject at hand - the specifics of the function which handles control messages for a service. MS surprisingly actually titled the page with meaningful text. Judy
-
Rajesh R Subramanian wrote:
Mark Salsbery wrote: Service Control Handler Function[^] Sounds more like a candidate for the Buzzword hall of shame forum.
Nope :), it's actually a very concise description of the subject at hand - the specifics of the function which handles control messages for a service. MS surprisingly actually titled the page with meaningful text. Judy
Thanks everyone for the help. The AbortShutdown() is what I was looking for. I know about the WM_QUERYENDSESSION message and how to handle it. Originally, I was looking for a way to get around the hidden window in my service, but because I have to interact with my user, I must use it.