Hi!
Is there an equivalent to %SERVICE_STOP_PENDING for the
%SERVICE_CONTROL_SHUTDOWN NT service control? Maybe something like
%SERVICE_SHUTDOWN_PENDING?
I'm trying to clean things up nicely
in this service I'm writing when the OS shuts down and my
service is still running. I'm getting through my %SERVICE_CONTROL_SHUTDOWN
logic in my service handler, but the service automatically
shuts down after about 20-21 seconds, even though it could
take me up to 60 seconds to clean things up. I've tested this
by looping for 60 seconds within this logic before continuuing
but it still shuts down after 20 seconds. I've also tried setting
the dwWaitHint value to 60 seconds.
Thanks,
Scott
------------------
Scott Wolfington
http://www.boogietools.com
[This message has been edited by Scott Wolfington (edited March 05, 2003).]
Is there an equivalent to %SERVICE_STOP_PENDING for the
%SERVICE_CONTROL_SHUTDOWN NT service control? Maybe something like
%SERVICE_SHUTDOWN_PENDING?

in this service I'm writing when the OS shuts down and my
service is still running. I'm getting through my %SERVICE_CONTROL_SHUTDOWN
logic in my service handler, but the service automatically
shuts down after about 20-21 seconds, even though it could
take me up to 60 seconds to clean things up. I've tested this
by looping for 60 seconds within this logic before continuuing
but it still shuts down after 20 seconds. I've also tried setting
the dwWaitHint value to 60 seconds.
Thanks,
Scott
------------------
Scott Wolfington
http://www.boogietools.com
[This message has been edited by Scott Wolfington (edited March 05, 2003).]
Comment