Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This function sets power limit values.
Syntax
NTSTATUS PoSetPowerLimitValue(
PVOID PowerLimitRequest,
PCOUNTED_REASON_CONTEXT Reason,
ULONG ValueCount,
PPOWER_LIMIT_VALUE Values
);
Parameters
PowerLimitRequest
A pointer to the power limit request object returned by PoCreatePowerLimitRequest.
Reason
A pointer to a COUNTED_REASON_CONTEXT structure that describes why the caller is making this power limit update.
ValueCount
Supplies the number of limit values to be updated.
Values
Supplies a pointer to the buffer that contains target limits and stores the readout.
Return value
Returns an NTSTATUS value.
Requirements
Requirement | Value |
---|---|
Header | wdm.h (include Wdm.h) |