PDA

View Full Version : ServiceStartService - need to adjust timeout?



lonewolf32
10-01-2010, 03:47 PM
The documentation for ServiceStartService says:

To force the function to return after a specific time interval, regardless of whether the service has started, you can change the nStartServiceWaitCount member of the structured variable SERVICE_IS_PARAMS to the appropriate time in seconds.

Is it necessary to do this? Its possible my (in-house created) service will hang or whatnot, will that prevent this function from returning?

If yes, how do you modify SERVICE_IS_PARAMS?

Thanks

Shark75
05-24-2012, 07:52 AM
Good question, I'd like to know the answer too as it looks like the parameter we need has been removed but not from the documentation.