ResumeIdle method

IWDFDevice2::ResumeIdle method

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

Syntax


void ResumeIdle();

Parameters

This method has no parameters.

Return value

None.

Remarks

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

For more information about StopIdle and ResumeIdle, see Supporting Idle Power-Down in UMDF-based Drivers.

Examples

The following code example obtains the IWDFDevice2 interface and then calls ResumeIdle.


    IWDFDevice2 *pIWDFDevice2 = NULL;
    HRESULT hr;

    //
    // Get a pointer to the IWDFDevice2 interface.
    //
    hr = pIWDFDevice->QueryInterface(__uuidof(IWDFDevice2),
                                     (void**) &pIWDFDevice2);
    if (SUCCEEDED(hr)) 
    {
    pIWDFDevice2->ResumeIdle();
    }
...
    SAFE_RELEASE(pIWDFDevice2);

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)

DLL

WUDFx.dll

See also

IWDFDevice2
IWDFDevice2::StopIdle

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft