Consuming Counter Data

Programs that want to read and make use of Windows Performance Counter data can use one of several interfaces as appropriate for the scenario.

The PDH interface is recommended for most C/C++ performance data collection tasks because it is easier to use than the registry and PerfLib interfaces.