OnDisarmWakeFromSx method
Collapse the table of content
Expand the table of content

IPowerPolicyCallbackWakeFromSx::OnDisarmWakeFromSx method

[Applies to UMDF 1.x only]

A driver's OnDisarmWakeFromSx event callback function disarms (that is, disables) a device's ability to trigger a wake signal while the device and system are in low-power states.

Syntax


void OnDisarmWakeFromSx(
  [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 OnDisarmWakeFromSx callback function if the driver supports the IPowerPolicyCallbackWakeFromSx interface.

If the driver has registered this callback function, the framework calls it after the framework has determined that system power is being restored, and after the bus driver completes the wait/wake IRP. Before calling the driver's OnDisarmWakeFromSx callback function, the framework calls the driver's IPnpCallback::OnD0Entry and IPowerPolicyCallbackWakeFromSx::OnWakeFromSxTriggered callback functions.

The OnDisarmWakeFromSx 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 in UMDF.

For more information about this callback function, see Supporting System Wake-Up 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

IPowerPolicyCallbackWakeFromSx
IPowerPolicyCallbackWakeFromSx::OnArmWakeFromSx
IPowerPolicyCallbackWakeFromSx::OnWakeFromSxTriggered

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft