EVT_WDF_DEVICE_DISARM_WAKE_FROM_S0 - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfdevice.h

EVT_WDF_DEVICE_DISARM_WAKE_FROM_S0 EvtWdfDeviceDisarmWakeFromS0;

VOID EvtWdfDeviceDisarmWakeFromS0(
  [in] WDFDEVICE Device
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-wdfdevice-evt_wdf_device_disarm_wake_from_s0)

EVT_WDF_DEVICE_DISARM_WAKE_FROM_S0 callback function

Description

[Applies to KMDF and UMDF]

A driver's EvtDeviceDisarmWakeFromS0 event callback function disarms (that is, disables) a device's ability to trigger a wake signal while in a low-power device state, if the system remains in the system working state (S0).

Parameters

Device [in]

A handle to a framework device object.

Remarks

To register an EvtDeviceDisarmWakeFromS0 callback function, a driver must call WdfDeviceInitSetPowerPolicyEventCallbacks. The driver must also set IdleCanWakeFromS0 in the IdleCaps member of its WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS structure.

If the driver has registered an EvtDeviceDisarmWakeFromS0 callback function, the framework calls it after the bus driver determines that an event has awakened the device, and after the bus driver subsequently completes the wait/wake IRP. Before calling the driver's EvtDeviceDisarmWakeFromS0 callback function, the framework calls the driver's EvtDeviceD0Entry, EvtInterruptEnable, and EvtDeviceWakeFromS0Triggered callback functions.

The EvtDeviceDisarmWakeFromS0 callback function must perform any hardware operations that are needed to disable the device's ability to trigger a wake signal after the power has been lowered.

For more information about when the framework calls this callback function, see PnP and Power Management Scenarios.

For more information about this callback function, see Supporting Idle Power-Down.

The EvtDeviceDisarmWakeFromS0 callback function is called at IRQL = PASSIVE_LEVEL. You should not make this callback function pageable.

See also

EvtDeviceArmWakeFromS0

EvtDeviceDisarmWakeFromSx