// pep_x.h
typedef struct _PEP_COMPONENT_PERF_SET {
UNICODE_STRING Name;
ULONGLONG Flags;
PEP_PERF_STATE_UNIT Unit;
PEP_PERF_STATE_TYPE Type;
union {
struct {
ULONG Count;
PPEP_PERF_STATE States;
} Discrete;
struct {
ULONGLONG Minimum;
ULONGLONG Maximum;
} Range;
};
} PEP_COMPONENT_PERF_SET, *PPEP_COMPONENT_PERF_SET;
View the official Windows Driver Kit DDI reference// pepfx.h
typedef struct _PEP_COMPONENT_PERF_SET {
UNICODE_STRING Name;
ULONGLONG Flags;
PEP_PERF_STATE_UNIT Unit;
PEP_PERF_STATE_TYPE Type;
union {
struct {
ULONG Count;
PPEP_PERF_STATE States;
} Discrete;
struct {
ULONGLONG Minimum;
ULONGLONG Maximum;
} Range;
};
} PEP_COMPONENT_PERF_SET, *PPEP_COMPONENT_PERF_SET;
View the official Windows Driver Kit DDI referenceNo description available.
The PEP_COMPONENT_PERF_SET structure describes the performance states (P-states) in a P-state set.
NameAn optional string that describes the device property controlled by this P-state set. For example, this string might be "Clock frequency" or "Memory bandwidth". If no such string is available for this P-state, the Name member is set to NULL. Otherwise, this member contains a pointer to a UNICODE_STRING structure that contains the string.
FlagsSet to zero. No flag bits are currently defined for this member.
UnitA PEP_PERF_STATE_UNIT structure that specifies the units in which the performance values for this P-state set are expressed. Component performance can be expressed in hertz (frequency) or in bits per second (bandwidth).
TypeA PEP_PERF_STATE_TYPE enumeration value that indicates the type of performance information that is specified for this component. This member indicates whether the performance values for this P-state set are specified as a list of discrete values or as a continuous range of values.
DiscreteThe list of discrete performance values for this P-state set.
Discrete.CountThe number of P-states in this P-state set.
Discrete.StatesA pointer to an array of PEP_PERF_STATE structures, each of which describes a discrete performance value in this P-state set. The Count member specifies the number of elements in this array. A P-state is identified by its array index. If the array contains N elements, P-state indexes range from 0 to N–1.
RangeThe range of discrete performance measurement values for this P-state set.
Range.MinimumThe minimum value in the range. This value is expressed in the units indicated by the Unit member.
Range.MaximumThe maximum value in the range. This value is expressed in the units indicated by the Unit member.
The unnamed union contains the performance measurement values for this P-state. This union contains either a list of discrete values (if Type == PepPerfStateTypeDiscrete) or a continuous range of values (if Type == PepPerfStateTypeRange).
The PerfStateSets member of the PEP_COMPONENT_PERF_INFO is the first element in an array of PEP_COMPONENT_PERF_SET structures. All members of the PEP_COMPONENT_PERF_SET structure contain input values that are supplied by the Windows power management framework (PoFx). The platform extension plug-in (PEP) must not write to this structure.
Device drivers use the PO_FX_COMPONENT_PERF_SET structure, which is similar to the PEP_COMPONENT_PERF_SET structure.
The PEP_COMPONENT_PERF_SET structure describes the performance states (P-states) in a P-state set.
NameAn optional string that describes the device property controlled by this P-state set. For example, this string might be "Clock frequency" or "Memory bandwidth". If no such string is available for this P-state, the Name member is set to NULL. Otherwise, this member contains a pointer to a UNICODE_STRING structure that contains the string.
FlagsSet to zero. No flag bits are currently defined for this member.
UnitA PEP_PERF_STATE_UNIT structure that specifies the units in which the performance values for this P-state set are expressed. Component performance can be expressed in hertz (frequency) or in bits per second (bandwidth).
TypeA PEP_PERF_STATE_TYPE enumeration value that indicates the type of performance information that is specified for this component. This member indicates whether the performance values for this P-state set are specified as a list of discrete values or as a continuous range of values.
DiscreteThe list of discrete performance values for this P-state set.
Discrete.CountThe number of P-states in this P-state set.
Discrete.StatesA pointer to an array of PEP_PERF_STATE structures, each of which describes a discrete performance value in this P-state set. The Count member specifies the number of elements in this array. A P-state is identified by its array index. If the array contains N elements, P-state indexes range from 0 to N–1.
RangeThe range of discrete performance measurement values for this P-state set.
Range.MinimumThe minimum value in the range. This value is expressed in the units indicated by the Unit member.
Range.MaximumThe maximum value in the range. This value is expressed in the units indicated by the Unit member.
The unnamed union contains the performance measurement values for this P-state. This union contains either a list of discrete values (if Type == PepPerfStateTypeDiscrete) or a continuous range of values (if Type == PepPerfStateTypeRange).
The PerfStateSets member of the PEP_COMPONENT_PERF_INFO is the first element in an array of PEP_COMPONENT_PERF_SET structures. All members of the PEP_COMPONENT_PERF_SET structure contain input values that are supplied by the Windows power management framework (PoFx). The platform extension plug-in (PEP) must not write to this structure.
Device drivers use the PO_FX_COMPONENT_PERF_SET structure, which is similar to the PEP_COMPONENT_PERF_SET structure.