PoFxSetTargetDripsDevicePowerState function

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.

Syntax

NTSTATUS PoFxSetTargetDripsDevicePowerState(
  POHANDLE           Handle,
  DEVICE_POWER_STATE TargetState
);

Parameters

Handle

A handle that represents the registration of the device with PoFx. The device driver previously received this handle from the PoFxRegisterDevice routine.

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.

Return Value

Returns STATUS_SUCCESS if the target state was accepted.

Requirements

   
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