HrGetServiceObjectGUID

The HrGetServiceObjectGUID function obtains the object GUID for a service.

Quick Info

Header file: EXCHINST.H
Library: EXCHINST.LIB

HRESULT HrGetServiceObjectGUID(
  LPTSTR lpszServiceName,  
  LPTSTR * lppszObjectGUID  
);
 

Parameters

lpszServiceName
Input parameter. Points to a null-terminated string containing the name of the service.
lppszObjectGUID
Output parameter. Points to the address of a null-terminated string containing the GUID of the object where the service is running.

Return Values

See Return Values.

See Also

HrGetServiceAccountName, HrGetServiceCommonName, HrGetServiceDisplayName, HrGetServiceExecutableName, HrGetServiceProductGUID, HrGetServiceServerName, HrGetServiceSiteDN