QueryServiceStatus function advapi32

int QueryServiceStatus(
  1. int hService,
  2. Pointer<SERVICE_STATUS> lpServiceStatus
)

Retrieves the current status of the specified service.

BOOL QueryServiceStatus(
  [in]  SC_HANDLE        hService,
  [out] LPSERVICE_STATUS lpServiceStatus
);

Implementation

int QueryServiceStatus(int hService, Pointer<SERVICE_STATUS> lpServiceStatus) =>
    _QueryServiceStatus(hService, lpServiceStatus);