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
| End of support | Unavailable in UMDF 2.0 and later. | 
|---|---|
| Minimum UMDF version | 1.9 | 
| Header | 
 | 
| DLL | 
 | 
See also
        Show:
        
        
    

