Using the PDH Functions to Consume Counter Data
You use the PDH functions to collect performance data. The PDH functions are easier to use than the registry functions, oriented more towards operations on single counters rather than groups of counters, and can be used to access counter data from current activity or log files.
To collect performance data using the PDH functions, perform the following steps.
- Create a query
- Add counters to the query
- Collect the performance data
- Display the performance data
- Close the query
You can collect performance data from either real-time sources or log files. You can display the collected data or write the data to log files. For more information on how to write performance data to log files, see Working with Log Files.
For additional information, see