PDH_RAW_COUNTER structure

The PDH_RAW_COUNTER structure returns the data as it was collected from the counter provider. No translation, formatting, or other interpretation is performed on the data.

Syntax


typedef struct _PDH_RAW_COUNTER {
  DWORD    CStatus;
  FILETIME TimeStamp;
  LONGLONG FirstValue;
  LONGLONG SecondValue;
  DWORD    MultiCount;
} PDH_RAW_COUNTER, *PPDH_RAW_COUNTER;

Members

CStatus

Counter status that indicates if the counter value is valid. Check this member before using the data in a calculation or displaying its value. For a list of possible values, see Checking PDH Interface Return Values.

TimeStamp

Local time for when the data was collected, in FILETIME format.

FirstValue

First raw counter value.

SecondValue

Second raw counter value. Rate counters require two values in order to compute a displayable value.

MultiCount

If the counter type contains the PERF_MULTI_COUNTER flag, this member contains the additional counter data used in the calculation. For example, the PERF_100NSEC_MULTI_TIMER counter type contains the PERF_MULTI_COUNTER flag.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Pdh.h

See also

PdhCalculateCounterFromRawValue
PdhComputeCounterStatistics
PdhGetRawCounterValue

 

 

Show: