// wdfrequest.h
WDFQUEUE WdfRequestGetIoQueue(
[in] WDFREQUEST Request
);
View the official Windows Driver Kit DDI reference
No description available.
[Applies to KMDF and UMDF]
The WdfRequestGetIoQueue method returns a handle to the framework queue object from which a specified I/O request was delivered.
Request
[in]A handle to a framework request object.
WdfRequestGetIoQueue returns a handle to a framework queue object. If the request was created by the driver, or if the driver has already completed the specified I/O request, the method returns NULL.
A bug check occurs if the driver supplies an invalid object handle.
For more information about WdfRequestGetIoQueue, see Obtaining Information About an I/O Request.
The following code example obtains a handle to the device object that represents the device that a request belongs to.
WDFDEVICE device;
device = WdfIoQueueGetDevice(WdfRequestGetIoQueue(Request));