Starting with Windows Vista, the Performance Counter Provider is no longer available in the operating system. The functions of this provider are replaced by the WMIPerfInst provider.
Windows Server 2003, Windows XP, and Windows 2000: The Performance Counter provider is a high-performance provider that provides raw performance counter data to the WMI
Performance Counter Classes derived from
Win32_PerfRawData. The
__Win32Provider instance name is "NT5_GenericPerfProvider_V1".
Windows NT and Windows Me/98/95: The Performance Counter provider is not available.
The Win32_PerfRawData classes are located in the WMI root\cimv2 namespace. Each WMI performance class corresponds to a performance object in a performance library. The properties of these classes represent the counters for the object. The WMI class name for a raw counter object is of the form "Win32_PerfRawData__<service_name>_<object_name>". For example, the WMI class name that contains the logical disk counters is
Win32_PerfRawData_PerfDisk_LogicalDisk.
You can use the corresponding Win32_PerfFormattedData class to get the pre-calculated performance data shown in System Monitor. For example, use the Win32_PerfFormattedData_PerfDisk_LogicalDisk class to get pre-calculated disk data.
Windows 2000: The
CounterType qualifier on each property points to the formula used to calculate the meaningful performance data. For more information, see
WMI Performance Counter Types.
For more information about how to write a client that can access raw performance data, see
Accessing Performance Data in C++.
As a high-performance provider, the Performance Counter provider implements the standard
IWbemProviderInit interface, as well as the
IWbemRefresher::Refresh method and the following
IWbemHiPerfProvider methods:
See Also
- WMI Providers
Send comments about this topic to Microsoft
Build date: 11/3/2009