Platform SDK: Exchange Server

HrGetServiceStatus

The HrGetServiceStatus function obtains the current state of a service on a computer.

Quick Info

Header file: EDKUTILS H
Library: EDKUTILS.LIB

HRESULT HrGetServiceStatus(
  LPTSTR lpszMachineName,  
  LPTSTR lpszServiceName,  
  DWORD *lpdwCurrentState  
);
 

Parameters

lpszMachineName
Input parameter. Specifies the computer name.
lpszServiceName
Input parameter. Specifies the service name.
lpdwCurrentState
Output parameter. Specifies the current state.

Return Values

See Return Values.