WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS_INIT - NtDoc

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

VOID WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS_INIT(
  [out] PWDF_DEVICE_POWER_POLICY_WAKE_SETTINGS Settings
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfdevice-wdf_device_power_policy_wake_settings_init)

WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS_INIT function

Description

[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.

Parameters

Settings [out]

A pointer to a driver-allocated WDF_DEVICE_POWER_POLICY_WAKE_SETTINGS structure.

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.