Platform SDK: Exchange Server |
The HrServiceWaitForControl function waits for service control after the service has been started.
Header file: | WINWRAP.H |
Library: | WINWRAP.LIB |
HRESULT HrServiceWaitForControl( DWORD dwTimeout, EDK_SERVICE_CONTROL_T * pedksc );
See Return Values.
HrServiceWaitForControl can be used by any thread, after the service has started, to wait for one of the following service control values: EDK_SC_NONE, EDK_SC_PAUSE, EDK_SC_CONTINUE, or EDK_SC_STOP.
For more information on this function, see the HrServiceWaitForControl function in WINWRAP.C under the WINWRAP code sample in 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, HrServiceWaitForStop, HServiceCreateThread, ServiceMain, ServiceStop