WdfDeviceResumeIdle macro (wdfdevice.h)

[Applies to KMDF and UMDF]

The WdfDeviceResumeIdle method informs the framework that the specified device is not in use and can be placed in a device low-power state if it remains idle.

Syntax

void WdfDeviceResumeIdle(
  [in]  Device
);

Parameters

[in] Device

A handle to a framework device object.

Return value

None

Remarks

A bug check occurs if the driver supplies an invalid object handle.

Every call to WdfDeviceStopIdle must eventually be followed by a call to WdfDeviceResumeIdle, or else the device will never return to a low-power state if it again becomes idle.

Calling WdfDeviceResumeIdleWithTag instead of WdfDeviceResumeIdle provides additional information (tag value, line number, and file name) that you can view in Microsoft debuggers.

Examples

The following code example informs the framework that the specified device is not in use and can be placed in a device low-power state if it remains idle.

WdfDeviceResumeIdle(device);

Requirements

Requirement Value
Target Platform Universal
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header wdfdevice.h (include Wdf.h)
Library Wdf01000.sys (KMDF); WUDFx02000.dll (UMDF)
IRQL <= DISPATCH_LEVEL
DDI compliance rules DriverCreate(kmdf), KmdfIrql(kmdf), KmdfIrql2(kmdf), KmdfIrqlExplicit(kmdf)

See also

Debugging Power Reference Leaks in WDF

WdfDeviceResumeIdleWithTag

WdfDeviceStopIdle

WdfDeviceStopIdleWithTag