The HrGetServiceStatus function obtains the current state of a service on a computer.
Header file: | EDKUTILS H |
Library: | EDKUTILS.LIB |
HRESULT HrGetServiceStatus(
LPTSTR lpszMachineName,
LPTSTR lpszServiceName,
DWORD *lpdwCurrentState
);
See Return Values.