Edit

Share via


PoCreatePowerLimitRequest function (wdm.h)

This function creates a power limit request object.

Syntax

NTSTATUS PoCreatePowerLimitRequest(
  PVOID                   *PowerLimitRequest,
  PDEVICE_OBJECT          TargetDeviceObject,
  PDEVICE_OBJECT          PolicyDeviceObject,
  PCOUNTED_REASON_CONTEXT Context
);

Parameters

PowerLimitRequest

A pointer to receive the power limit request object.

TargetDeviceObject

Supplies the device object of the device to apply power limits.

PolicyDeviceObject

Supplies the device object of the device creating power limit requests.

Context

A pointer to a COUNTED_REASON_CONTEXT structure that describes why the caller is creating the power limit request object.

Return value

Returns an NTSTATUS value.

Requirements

Requirement Value
Header wdm.h (include Wdm.h)

See also

PoDeletePowerLimitRequest

PoQueryPowerLimitAttributes

PoQueryPowerLimitValue

PoSetPowerLimitValue

POWER_LIMIT_ATTRIBUTES

POWER_LIMIT_TYPES

POWER_LIMIT_VALUE