HARDWARE_COUNTER structure (ntddk.h)

The HARDWARE_COUNTER structure contains information about a hardware counter.

Syntax

typedef struct _HARDWARE_COUNTER {
  HARDWARE_COUNTER_TYPE Type;
  ULONG                 Reserved;
  ULONG64               Index;
} HARDWARE_COUNTER, *PHARDWARE_COUNTER;

Members

Type

Specifies the type of the hardware counter. Set this member to the following HARDWARE_COUNTER_TYPE enumeration value:

  • PMCCounter

Reserved

Reserved for use by the operating system. Initialize this member to zero.

Index

Specifies the hardware counter index. Each hardware counter in a performance monitoring unit (PMU) for a processor is identified by an index.

Remarks

This structure is used by the KeQueryHardwareCounterConfiguration and KeSetHardwareCounterConfiguration routines.

The Type member specifies the type of hardware counter that is described by the structure. In Windows 7, the only defined hardware counter type is PMCCounter, which is a performance monitor counter. This type of counter is used by thread-profiling applications.

Requirements

Requirement Value
Minimum supported client Supported in Windows 7 and later versions of Windows.
Header ntddk.h (include Ntddk.h)

See also

HARDWARE_COUNTER_TYPE

KeQueryHardwareCounterConfiguration

KeSetHardwareCounterConfiguration