Platform SDK: Exchange Server

Installing Performance Monitoring

A setup program can install performance monitoring, a process that includes defining the gateway data that will be used by the Windows NT Performance Monitor. Performance data is represented as a set of individual data items called counters.

You can install performance monitoring in two steps.

To install performance monitoring

  1. Call the HrInstallServicePerfMon function of EXCHINST.C, in the \SAMPLES\DbMsg\EXCHANGE\LIBSRC\EXCHINST directory. This function creates a performance monitor object (or class) in the Windows NT Registry, and creates keys for that object. It also creates a single Registry instance of this class.
  2. Call the FLoadCounters function to load performance counters into the newly created Windows NT Registry entry. Later, when you run the Windows NT Performance Monitor, the object and instance (with default counters) will be available. Your setup program should call FLoadCounters only for the first instance of the gateway being monitored. The FLoadCounters function is defined in EDKSETUP.H.