[b] 0. Introduction [/b]windows provides a performance monitor (Perfmon.msc) to track application performance and provides a set of performance counter APIs that can be easily read in the application. We can use this data to find bottlenecks in the system or software, find out where the software is slowing down, where it needs to be improved/upgraded. Location on MSDN: MSDN Library for Visual Studio. NET 2003:ms-help://ms. Msdnqtr.2003feb.2052/perfmon/base/performance_data.htmmsdn Library for Visual Studio 2008 Simplified Chinese: ms-help:// Ms. The functions of the msdnqtr.v90.chs/perfctrs/perf/performance_counters_portal.htm performance counter begin with PDH. [b] 1. Programming method [/b][i]a. Open Pdh_hquery[/i]pdh_hquery pdhquery=null; Pdh_status pdhstatus=pdhopenquery (null,0,&pdhquery); if (pdhstatus!=error_success) {cout<< "PdhOpenQuery ( ) error:0x "< Performance counter provider for Windows