Platform SDK: Performance Monitoring |
The PDH library of functions provides a way to obtain information about the path and value of a particular counter.
To obtain counter information using a counter handle returned by PdhAddCounter, call the PdhGetCounterInfo function. The counter information is returned as a PDH_COUNTER_INFO structure. You can call PdhGetCounterInfo at any time between the opening and closing of the counter.
Refer to Adding Counters to a Query for more information on PdhAddCounter.