WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS_INIT function (wdfdevice.h)

[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

[out] Settings

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

Requirement Value
Target Platform Universal
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header wdfdevice.h (include Wdf.h)