Performance Counters Functions
Use the following functions to consume and provide performance data.
Consumer functions
Use the following Performance Data Helper abstraction-layer functions to consume performance data from both version 1 and version 2 performance counters:
- CounterPathCallBack
- PdhAddCounter
- PdhAddEnglishCounter
- PdhBindInputDataSource
- PdhBrowseCounters
- PdhBrowseCountersH
- PdhCalculateCounterFromRawValue
- PdhCloseLog
- PdhCloseQuery
- PdhCollectQueryData
- PdhCollectQueryDataEx
- PdhCollectQueryDataWithTime
- PdhComputeCounterStatistics
- PdhConnectMachine
- PdhEnumLogSetNames
- PdhEnumMachines
- PdhEnumMachinesH
- PdhEnumObjectItems
- PdhEnumObjectItemsH
- PdhEnumObjects
- PdhEnumObjectsH
- PdhExpandCounterPath
- PdhExpandWildCardPath
- PdhExpandWildCardPathH
- PdhFormatFromRawValue
- PdhGetCounterInfo
- PdhGetCounterTimeBase
- PdhGetDataSourceTimeRange
- PdhGetDataSourceTimeRangeH
- PdhGetDefaultPerfCounter
- PdhGetDefaultPerfCounterH
- PdhGetDefaultPerfObject
- PdhGetDefaultPerfObjectH
- PdhGetDllVersion
- PdhGetFormattedCounterArray
- PdhGetFormattedCounterValue
- PdhGetLogFileSize
- PdhGetRawCounterArray
- PdhGetRawCounterValue
- PdhIsRealTimeQuery
- PdhLookupPerfIndexByName
- PdhLookupPerfNameByIndex
- PdhMakeCounterPath
- PdhOpenLog
- PdhOpenQuery
- PdhOpenQueryH
- PdhParseCounterPath
- PdhParseInstanceName
- PdhReadRawLogRecord
- PdhRemoveCounter
- PdhSelectDataSource
- PdhSetCounterScaleFactor
- PdhSetDefaultRealTimeDataSource
- PdhSetQueryTimeRange
- PdhUpdateLog
- PdhUpdateLogFileCatalog
- PdhValidatePath
- PdhValidatePathEx
Use the following low-level functions to consume performance data from version 2 performance counters if you cannot use the Performance Data Helper abstraction-layer functions:
- PerfAddCounters
- PerfCloseQueryHandle
- PerfDeleteCounters
- PerfEnumerateCounterSet
- PerfEnumerateCounterSetInstances
- PerfOpenQueryHandle
- PerfQueryCounterData
- PerfQueryCounterInfo
- PerfQueryCounterSetRegistrationInfo
Provider functions
Performance providers use the following functions:
- AllocateMemory
- ControlCallback
- CounterCleanup
- CounterInitialize
- FreeMemory
- PerfCreateInstance
- PerfDecrementULongCounterValue
- PerfDecrementULongLongCounterValue
- PerfDeleteInstance
- PerfIncrementULongCounterValue
- PerfIncrementULongLongCounterValue
- PerfQueryInstance
- PerfSetCounterSetInfo
- PerfSetULongCounterValue
- PerfSetULongLongCounterValue
- PerfSetCounterRefValue
- PerfStartProvider
- PerfStartProviderEx
- PerfStopProvider
A performance extension DLL that provides performance data implements the following functions:
You can use the following optional functions to register and unregister the .ini data for version 1 providers: