SUMMARY
The service control handler function must return within 30 seconds. If it
does not, the Service Control Manager will return the following error:
Error 2186 - The service is not responding to the control function
If a service needs to do lengthy processing when the service is in the
service control handler, it should create a secondary thread to perform the
lengthy processing and then return. This prevents the service from tying up
the service control handler thread.