PoSetPowerLimitValue - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdm.h

NTSTATUS PoSetPowerLimitValue(
  PVOID                   PowerLimitRequest,
  PCOUNTED_REASON_CONTEXT Reason,
  ULONG                   ValueCount,
  PPOWER_LIMIT_VALUE      Values
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-posetpowerlimitvalue)

Description

This function sets power limit 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.

See also

PoCreatePowerLimitRequest

PoDeletePowerLimitRequest

PoQueryPowerLimitAttributes

PoQueryPowerLimitValue

POWER_LIMIT_ATTRIBUTES

POWER_LIMIT_TYPES

POWER_LIMIT_VALUE