Performance Counters Data Types

PDH defines the following data types.

Data typeDescription
PDH_HQUERYHandle to a query. The PdhOpenQuery function returns this handle.
PDH_HCOUNTERHandle to a counter. The PdhAddCounter function returns this handle. PDH maintains the linkage between counters and queries.
PDH_HLOGHandle to a log file. The PdhOpenLog and PdhBindInputDataSource functions return this handle.
PDH_STATUSPDH status value. All PDH functions return a value of type PDH_STATUS. If the function succeeds, the return value is ERROR_SUCCESS. Otherwise, the function returns a system error code or a PDH error code.

 

 

 

Show: