Edit

Share via


PoQueryPowerLimitValue function (wdm.h)

This function queries the limit values of a power limit request object.

Syntax

NTSTATUS PoQueryPowerLimitValue(
  PVOID              PowerLimitRequest,
  ULONG              ValueCount,
  PPOWER_LIMIT_VALUE Values
);

Parameters

PowerLimitRequest

A pointer to the power limit request object returned by PoCreatePowerLimitRequest.

ValueCount

Supplies the number of limit values to query.

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

PoSetPowerLimitValue

POWER_LIMIT_ATTRIBUTES

POWER_LIMIT_TYPES

POWER_LIMIT_VALUE