poidasmith / winrun4j

WinRun4J Java Application Launcher
http://winrun4j.sourceforge.net
212 stars 63 forks source link

Add a way to programatically extend the service shutdown timeout #13

Open jonalbrecht opened 12 years ago

jonalbrecht commented 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.

poidasmith commented 12 years ago

Sounds like a useful feature. Have added it to the list for the next release. Thanks.

jwaterloo commented 9 years ago

Please also provide SERVICE_START_PENDING