Hardware Dev Center

IPowerPolicyCallbackWakeFromS0::OnDisarmWakeFromS0 method

[Applies to UMDF 1.x only]

A driver's OnDisarmWakeFromS0 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).

Syntax


void OnDisarmWakeFromS0(
  [in] IWDFDevice *pWdfDevice
);

Parameters

pWdfDevice [in]

A pointer to the IWDFDevice interface of the device object that represents one of the driver's devices.

Return value

None.

Remarks

Your driver must provide an OnDisarmWakeFromS0 callback function if the driver supports the IPowerPolicyCallbackWakeFromS0 interface.

If the driver provides an OnDisarmWakeFromS0 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 OnDisarmWakeFromS0 callback function, the framework calls the driver's IPnpCallback::OnD0Entry and IPowerPolicyCallbackWakeFromS0::OnWakeFromS0Triggered callback functions.

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

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

For more information about this callback function, see Supporting Idle Power-Down in UMDF-based Drivers.

Requirements

Target platform

Desktop

End of support

Unavailable in UMDF 2.0 and later.

Minimum UMDF version

1.9

Header

Wudfddi.h (include Wudfddi.h)

See also

IPowerPolicyCallbackWakeFromS0
IPowerPolicyCallbackWakeFromS0::OnArmWakeFromS0
IPowerPolicyCallbackWakeFromS0::OnWakeFromS0Triggered

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft