PHYSICAL_COUNTER_RESOURCE_LIST structure (ntddk.h)

The PHYSICAL_COUNTER_RESOURCE_LIST structure describes an array of PHYSICAL_COUNTER_RESOURCE_DESCRIPTOR structures.

Syntax

typedef struct _PHYSICAL_COUNTER_RESOURCE_LIST {
  ULONG                                Count;
  PHYSICAL_COUNTER_RESOURCE_DESCRIPTOR Descriptors[ANYSIZE_ARRAY];
} PHYSICAL_COUNTER_RESOURCE_LIST, *PPHYSICAL_COUNTER_RESOURCE_LIST;

Members

Count

The number of elements in the Descriptors array.

Descriptors[ANYSIZE_ARRAY]

The first element in an array of PHYSICAL_COUNTER_RESOURCE_DESCRIPTOR structures. If the array contains more than one element, the remaining elements immediately follow the first element.

Remarks

This structure describes a set of counter resources. Most processors have performance monitor units (PMUs) that contain a number of hardware counters to measure various aspects of system performance. A counter resource is a single hardware counter, a block of contiguous counters, or a counter overflow interrupt in a PMU.

The buffer allocated to contain a PHYSICAL_COUNTER_RESOURCE_LIST structure must be large enough to contain the structure plus any PHYSICAL_COUNTER_RESOURCE_DESCRIPTOR array elements that follow the structure.

The HalAllocateHardwareCounters routine's ResourceList parameter is a pointer to a PHYSICAL_COUNTER_RESOURCE_LIST structure. In Windows 7, this parameter is unused and must be set to NULL.

Requirements

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

See also

HalAllocateHardwareCounters

PHYSICAL_COUNTER_RESOURCE_DESCRIPTOR