Expand Minimize

WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS_INIT function

[Applies to KMDF and UMDF]

The WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS_INIT function initializes a driver's WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS structure.

Syntax


VOID WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS_INIT(
  _Out_  PWDF_DEVICE_POWER_POLICY_WAKE_SETTINGS Settings
);

Parameters

Settings [out]

A pointer to a driver-allocated WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS structure.

Return value

None

Remarks

The WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS_INIT function zeros the specified WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS structure and sets the structure's Size member. Then the function sets the structure's Enabled member to WdfUseDefault, sets the DxState member to PowerDeviceMaximum, and sets the UserControlOfWakeSettings member to WakeAllowUserControl.

For a code example that uses WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS_INIT, see WdfDeviceAssignSxWakeSettings.

Requirements

Minimum KMDF version

1.0

Minimum UMDF version

2.0

Header

Wdfdevice.h (include Wdf.h)

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft