// ntddk.h
typedef enum _PHYSICAL_COUNTER_RESOURCE_DESCRIPTOR_TYPE {
ResourceTypeSingle,
ResourceTypeRange,
ResourceTypeExtendedCounterConfiguration,
ResourceTypeOverflow,
ResourceTypeEventBuffer,
ResourceTypeIdenitificationTag,
ResourceTypeMax
} PHYSICAL_COUNTER_RESOURCE_DESCRIPTOR_TYPE;
View the official Windows Driver Kit DDI referenceNo description available.
The PHYSICAL_COUNTER_RESOURCE_DESCRIPTOR_TYPE enumeration contains constants that indicate the type of hardware performance counter resource that is described by a PHYSICAL_COUNTER_RESOURCE_DESCRIPTOR structure.
ResourceTypeSingleA single hardware counter. The counter is described by the u.CounterIndex member of the PHYSICAL_COUNTER_RESOURCE_DESCRIPTOR structure.
ResourceTypeRangeA range of counter indexes. The counter indexes are described by the u.Range member of the PHYSICAL_COUNTER_RESOURCE_DESCRIPTOR structure.
ResourceTypeExtendedCounterConfigurationAn extended counter configuration register address. Specifying this value will result in HalAllocateHardwareCounters returning STATUS_NOT_SUPPORTED.
ResourceTypeOverflowA counter overflow interrupt handler. The interrupt handler to be invoked is described by the u.OverflowHandler member of the PHYSICAL_COUNTER_RESOURCE_DESCRIPTOR structure.
ResourceTypeEventBufferAn event buffer configuration. The configuration of the event buffer threshold, entry size, and overflow handler are described by the u.EventBufferConfiguration member of the PHYSICAL_COUNTER_RESOURCE_DESCRIPTOR structure.
ResourceTypeMaxThe maximum value in this enumeration type.
ResourceTypeIdenitificationTagThe Type member of a PHYSICAL_COUNTER_RESOURCE_DESCRIPTOR structure uses a PHYSICAL_COUNTER_RESOURCE_DESCRIPTOR_TYPE enumeration constant to indicate the type of counter resource that is described by the structure.
PHYSICAL_COUNTER_RESOURCE_DESCRIPTOR
PPHYSICAL_COUNTER_OVERFLOW_HANDLER
PHYSICAL_COUNTER_EVENT_BUFFER_OVERFLOW_HANDLER