Viewing UMDF Objects
This topic describes how you can use the Wudfext.dll debugger extensions to view information about objects used by a User-Mode Driver Framework (UMDF) version 1 driver.
Starting with UMDF version 2, you should instead use the Wdfkd.dll debugger extensions. For more info, see Windows Driver Framework Extensions (Wdfkd.dll).
You can perform the following steps to view information about UMDF version 1 objects:
- Use one of the following UMDF debugger extensions to view device stacks that are in the host process:
!wudfext.umdevstack as shown in the following example:
The information includes driver objects and device objects for each driver. Currently, UMDF allows only one device stack in a host process so there is no difference between the outputs of these two extensions.
View the complete object tree by using the !wudfext.wudfobject UMDF debugger extension, as in the following example:
!wudfext.wudfobject <IWDFDriver*> 1
Use the !wudfext.wudfdevice UMDF debugger extension as shown in the following example to determine the Plug and Play (PnP) and power-management state of the device:
- Perform the following steps to determine the queues that are associated with the device:
- Use the !wudfext.wudfdevicequeues UMDF debugger extension to view the queues that are associated with the device. This extension shows queue properties, queue state, and driver-owned requests.
Use the !wudfext.wudfqueue UMDF debugger extension as shown in the following example to obtain information about each queue:
Use the !wudfext.wudfrequest UMDF debugger extension to obtain information about a particular request. This information includes the underlying user-mode I/O request packet (IRP). From the user-mode IRP information, you can determine where the request is currently being processed in the stack. You can also use the !wudfext.umirp UMDF debugger extension to obtain this user-mode IRP information.
Determine all I/O targets by:
- Using the !wudfext.wudfobject UMDF debugger extension to view the child objects of the device object. I/O target objects are child objects of the device object.
Using the !wudfext.wudfiotarget UMDF debugger extension as shown in the following example to view information about each I/O target object:
This extension shows the target's state and the list of sent requests.
There is currently no UMDF debugger extension that allows you to view all I/O targets.
Use the following UMDF debugger extensions to view information about file objects:
- !wudfext.wudfrequest or !wudfext.umirp
Use the !wudfext.wudfrequest or the !wudfext.umirp UMDF debugger extension to view files that are child objects of device objects.
Use the !wudfext.wudffile UMDF debugger extension as shown in the following example to view information about a framework file:
Use the !wudfext.umfile UMDF debugger extension as shown in the following example to view information about a UMDF intra-stack file (that is, a file object that a driver in the stack created as opposed to a file object that was created by an application or by a driver in another stack):
In some cases, there might not be a corresponding framework file, and user-mode IRP information might include a UMDF intra-stack file.
Information that !wudfext.umfile displays includes any IRPs that are queued to the UMDF intra-stack file. Only driver-created files track user-mode IRPs that are queued to those files. For application-created files, the I/O manager tracks the kernel-mode IRPs.
- !wudfext.umdevstacks and !wudfext.umdevstack
Use the output from the !wudfext.umdevstacks and !wudfext.umdevstack UMDF debugger extensions to view outstanding UMDF intra-stack files that correspond to driver-created files.