I want to know that, Where we can check the value of dwwaithint for a service.it is a member variable of SERVICE_STATUS structure.
I am using above variable(dwwaithint) in my application for one of the service. I observed that it's value gets set to 2147483647, Which seems to be incorrect.I picked up the code from the following link:-
I'm confused, you linked the answer to your question above your sig. You have to query against the values that they use in the code you linked to. What is the trouble you are having here?
It's something only you can provide. It allows you to tell the service control manager how long the operation is expected to take before it's considered to have timed out. There isn't a call to fill it in, you are expected to.
There is no default. You have to specify a value. Specifying -1 just means you won't get a timeout from the service control manager, it will just hang if it can't control the service in question.