ResUtilVerifyService function (resapi.h)

Checks if a service identified by a handle is starting or currently running. The PRESUTIL_VERIFY_SERVICE type defines a pointer to this function.

Syntax

DWORD ResUtilVerifyService(
  [in] SC_HANDLE hServiceHandle
);

Parameters

[in] hServiceHandle

Handle of the service to verify.

Return value

If the operation succeeds, the function returns ERROR_SUCCESS.

If the operation fails, the function returns a system error code. The following is a possible error code.

Return code Description
ERROR_SERVICE_NOT_ACTIVE
The service is not operational.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 Enterprise, Windows Server 2008 Datacenter
Target Platform Windows
Header resapi.h
Library ResUtils.lib
DLL ResUtils.dll