// wdm.h
NTSTATUS PoCreatePowerLimitRequest(
PVOID *PowerLimitRequest,
PDEVICE_OBJECT TargetDeviceObject,
PDEVICE_OBJECT PolicyDeviceObject,
PCOUNTED_REASON_CONTEXT Context
);
View the official Windows Driver Kit DDI referenceNo description available.
This function creates a power limit request object.
PowerLimitRequestA pointer to receive the power limit request object.
TargetDeviceObjectSupplies the device object of the device to apply power limits.
PolicyDeviceObjectSupplies the device object of the device creating power limit requests.
ContextA pointer to a COUNTED_REASON_CONTEXT structure that describes why the caller is creating the power limit request object.
Returns an NTSTATUS value.