PERF_COUNTER_BLOCK structure

Describes the block of memory that contains the raw performance counter data for an object's counters.

Syntax


typedef struct _PERF_COUNTER_BLOCK {
  DWORD ByteLength;
} PERF_COUNTER_BLOCK;

Members

ByteLength

Size of this structure and the raw counter data that follows, in bytes.

Remarks

The CounterOffset member of PERF_COUNTER_DEFINITION provides the offset from the beginning of this structure to the counter value.

The location of the PERF_COUNTER_BLOCK structure within the PERF_OBJECT_TYPE block depends on if the object contains instances. For details, see Performance Data Format.

You must ensure that the size of the counter block is aligned to an 8-byte boundary. For example, if the performance object includes two DWORD counters, you must add an additional four bytes to the counter block to make it aligned to an 8-byte boundary.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Winperf.h (include Windows.h)

See also

PERF_COUNTER_DEFINITION
PERF_INSTANCE_DEFINITION
PERF_OBJECT_TYPE

 

 

Show: