IWDFDevice2::ResumeIdle method (wudfddi.h)
[Warning: UMDF 2 is the latest version of UMDF and supersedes UMDF 1. All new UMDF drivers should be written using UMDF 2. No new features are being added to UMDF 1 and there is limited support for UMDF 1 on newer versions of Windows 10. Universal Windows drivers must use UMDF 2. For more info, see Getting Started with UMDF.]
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();
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
Requirement | Value |
---|---|
End of support | Unavailable in UMDF 2.0 and later. |
Target Platform | Desktop |
Minimum UMDF version | 1.9 |
Header | wudfddi.h (include Wudfddi.h) |
DLL | WUDFx.dll |