Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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) |