The HrServiceWaitForStop function waits for service control after the service has been started.
Header file: | WINWRAP.H |
Library: | WINWRAP.LIB |
HRESULT HrServiceWaitForStop(
DWORD dwTimeout,
EDK_SERVICE_CONTROL_T * pedksc
);
See Return Values.
After the service has started, HrServiceWaitForStop can be used by any thread to wait for one of the following service control values: EDK_SC_NONE, or EDK_SC_STOP.
For more information on this function, see the HrServiceWaitForStop function in WINWRAP.C under the WINWRAP code sample in the Code Samples folder.
For more information on the WINWRAP library, see Using WINWRAP Functions, Mandatory Entry Points and Variables, and Events Signalled.
fIsService, FServiceReportStatus, HrServiceConfirmStop, HrServiceGetArgv, HrServiceGetName, HrServiceProcessControl, HrServiceShutdown, HrServiceStartup, HrServiceWaitForContinue, HrServiceWaitForControl, HServiceCreateThread, ServiceMain, ServiceStop