PoFxSetTargetDripsDevicePowerState function (wdm.h)
This routine is called to notify the power manager of the device's target device power state for DRIPS. The driver can override the DRIPS constraint provided by the PEP.
NTSTATUS PoFxSetTargetDripsDevicePowerState(
[in] POHANDLE Handle,
[in] DEVICE_POWER_STATE TargetState
);
[in] Handle
A handle that represents the registration of the device with PoFx. The device driver previously received this handle from the PoFxRegisterDevice routine.
[in] TargetState
Specifies the target DRIPS device power state. Possible values are defined in the DEVICE_POWER_STATE enumeration. This value must be lower than the existing device constraint. A device power state of PowerDeviceUnspecified resets to the PEP provided constraint.
Returns STATUS_SUCCESS if the target state was accepted.
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1709 |
Minimum supported server | Windows Server 2016 |
Target Platform | Windows |
Header | wdm.h |
Library | NtosKrnl.lib |
DLL | NtosKrnl.exe (kernel mode) |
IRQL | PASSIVE_LEVEL |