WdfDeviceResumeIdleWithTag macro (wdfdevice.h)
[Applies to KMDF and UMDF]
The WdfDeviceResumeIdleWithTag macro decrements the power reference count for a specified framework device object and assigns the driver's current file name and line number to the reference. The macro also assigns a tag value to the reference.
void WdfDeviceResumeIdleWithTag( Device, Tag );
[in] A handle to a framework device object.
[in] A driver-defined value that the framework stores as an identification tag for the power reference.
A bug check occurs if the driver supplies an invalid object handle.
If the object's reference count becomes zero, the object might be deleted before WdfDeviceResumeIdleWithTag returns.
Calling WdfDeviceResumeIdleWithTag instead of WdfDeviceResumeIdle provides additional information (tag value, line number, and file name) that you can view in Microsoft debuggers. WdfDeviceResumeIdleWithTag uses the driver's current line number and file name.
You can view the tag, line number, and file name values by using the !wdfkd.wdftagtracker debugger extension.
kd> !wdfdevice <handle> f
|Minimum KMDF version||1.15|
|Minimum UMDF version||2.15|
|Header||wdfdevice.h (include Wdf.h)|
|Library||Wdf01000.sys (KMDF); WUDFx02000.dll (UMDF)|
|DDI compliance rules||DriverCreate, KmdfIrql, KmdfIrql2|