// ntpoapi.h
typedef struct _POWER_LIMIT_ATTRIBUTES {
POWER_LIMIT_TYPES Type;
ULONG DomainId;
ULONG MaxValue;
ULONG MinValue;
ULONG MinTimeParameter;
ULONG MaxTimeParameter;
ULONG DefaultACValue;
ULONG DefaultDCValue;
union {
struct {
ULONG SupportTimeParameter : 1;
ULONG Reserved : 31;
};
ULONG AsUlong;
} Flags;
} POWER_LIMIT_ATTRIBUTES, *PPOWER_LIMIT_ATTRIBUTES;
View the official Windows Driver Kit DDI referenceNo description available.
The POWER_LIMIT_ATTRIBUTES structure describes the attributes of each power limit type.
TypeIndicates which POWER_LIMIT_TYPES this attribute is associated with.
DomainIdIndicates which domain this attribute is associated with.
MaxValueThe maximum supported value (inclusive), unit is mW for power, mA for current.
MinValueThe minimum supported value (inclusive), unit is mW for power, mA for current.
MinTimeParameterThe minimum supported time parameter (inclusive), unit is microsecond.
MaxTimeParameterThe maximum supported time parameter (inclusive), unit is microsecond.
DefaultACValueThe default AC value, unit is mW for power, mA for current, microsecond for time parameters.
DefaultDCValueThe default DC value, unit is mW for power, mA for current, microsecond for time parameters.
FlagsDefines the Flags union.
Flags.SupportTimeParameterSet to 1 if this limit supports time parameter.
Flags.ReservedReserved
Flags.AsUlongDefines the AsULong member of the Flags union.
Each instance of POWER_LIMIT_ATTRIBUTES is associated with one domain and one type. For example, if one power limit device has 2 domains: domain 0 supports PowerLimitContinuous, domain 1 supports PowerLimitContinuous and PowerLimitPreemptive.