Open jonalbrecht opened 12 years ago
I have a service that takes longer than the default 30 seconds to shutdown. From http://bytes.com/topic/c-sharp/answers/274008-service-stop-timeout-setting it looks like you can send SetServiceStatus(...) (http://msdn.microsoft.com/en-us/library/windows/desktop/ms686241(v=vs.85).aspx) with a value of SERVICE_STOP_PENDING to reset the 30 second counter.
Sounds like a useful feature. Have added it to the list for the next release. Thanks.
Please also provide SERVICE_START_PENDING
I have a service that takes longer than the default 30 seconds to shutdown. From http://bytes.com/topic/c-sharp/answers/274008-service-stop-timeout-setting it looks like you can send SetServiceStatus(...) (http://msdn.microsoft.com/en-us/library/windows/desktop/ms686241(v=vs.85).aspx) with a value of SERVICE_STOP_PENDING to reset the 30 second counter.