Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The GetServiceStatus method retrieves the status of the service being administered through SDO.
Syntax
HRESULT GetServiceStatus(
[out] LONG *status
);
Parameters
[out] status
Pointer to a LONG variable that contains the status of the service. The status is one of the following values.
SERVICE_STOPPED
The service is stopped.
SERVICE_START_PENDING
The service is starting.
SERVICE_STOP_PENDING
The service is shutting down.
SERVICE_RUNNING
The service is up and running.
Return value
If the method succeeds the return value is S_OK.
If the method fails, the return value is one of the following error codes.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | None supported |
| Minimum supported server | Windows Server 2008 |
| Target Platform | Windows |
| Header | sdoias.h |
| DLL | Iassdo.dll |