// wdfio.h
WDFDEVICE WdfIoQueueGetDevice(
[in] WDFQUEUE Queue
);
View the official Windows Driver Kit DDI reference
No description available.
[Applies to KMDF and UMDF]
The WdfIoQueueGetDevice method returns a handle to the framework device object that a specified I/O queue belongs to.
Queue
[in]A handle to a framework queue object.
WdfIoQueueGetDevice returns a handle to a framework device object.
A bug check occurs if the driver supplies an invalid object handle.
For more information about the WdfIoQueueGetDevice method, see Obtaining I/O Queue Properties.
The following code example obtains a handle to the framework device object that is associated with the I/O queue that contains a specified request.
WDFDEVICE device;
device = WdfIoQueueGetDevice(WdfRequestGetIoQueue(Request));