Edit

Share via


PoSetPowerLimitValue function (wdm.h)

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)

See also

PoCreatePowerLimitRequest

PoDeletePowerLimitRequest

PoQueryPowerLimitAttributes

PoQueryPowerLimitValue

POWER_LIMIT_ATTRIBUTES

POWER_LIMIT_TYPES

POWER_LIMIT_VALUE