Platform SDK: Exchange Server

HrInstallServicePerfMon

The HrInstallServicePerfMon function loads the Windows NT performance monitor on the server.

Quick Info

Header file: EXCHINST.H
Library: EXCHINST.LIB

HRESULT HrInstallServicePerfMon(
  LPSTR lpszServiceName,          
  LPSTR lpszClassName,            
  LPSTR lpszLibraryName,          
  LPSTR lpszLibraryOpenFunction,  
  LPSTR lpszLibraryCollectFunction,  
  LPSTR lpszLibraryCloseFunction  
);
 

Parameters

lpszServiceName
Input parameter. Points to a null-terminated string (with a maximum length of 256 characters) that contains the name of the service to monitor.
lpszClassName
Input parameter. Points to a null-terminated string (with a maximum length of 256 characters) that contains the class of service to monitor.
lpszLibraryName
Input parameter. Points to a null-terminated string (with a maximum length of 256 characters) that contains the full pathname of the DLL containing the performance monitoring functions.
lpszLibraryOpenFunction
Input parameter. Points to a null-terminated string (with a maximum length of 256 characters) that contains the performance monitoring function that opens (begins) performance monitoring on the service.
lpszLibraryCollectFunction
Input parameter. Points to a null-terminated string (with a maximum length of 256 characters) that contains the performance monitoring function that collects the statistics from the service that is monitored.
lpszLibraryCloseFunction
Input parameter. Points to a null-terminated string (with a maximum length of 256 characters) that contains the performance monitoring function that closes (halts) performance monitoring on the service.

Return Values

See Return Values.

Remarks

For more information on this function, see Installing Performance Monitoring.

See Also

HrRemoveServicePerfMon