// wdm.h
NTSTATUS PoSetPowerLimitValue(
PVOID PowerLimitRequest,
PCOUNTED_REASON_CONTEXT Reason,
ULONG ValueCount,
PPOWER_LIMIT_VALUE Values
);
View the official Windows Driver Kit DDI referenceNo description available.
This function sets power limit values.
PowerLimitRequestA pointer to the power limit request object returned by PoCreatePowerLimitRequest.
ReasonA pointer to a COUNTED_REASON_CONTEXT structure that describes why the caller is making this power limit update.
ValueCountSupplies the number of limit values to be updated.
ValuesSupplies a pointer to the buffer that contains target limits and stores the readout.
Returns an NTSTATUS value.