// wdfdevice.h
WDFQUEUE WdfDeviceGetDefaultQueue(
[in] WDFDEVICE Device
);
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF and UMDF]
The WdfDeviceGetDefaultQueue method returns a handle to a device's default I/O queue.
Device [in]A handle to a framework device object.
If the operation succeeds, the method returns a handle to a framework queue object. If the driver did not create a default I/O queue for the device, the method returns NULL.
A bug check occurs if the driver supplies an invalid object handle.
For more information about default I/O queues, see Creating I/O Queues.
The following code example obtains a handle to a device's default I/O queue.
WDFQUEUE DefaultQueue;
DefaultQueue = WdfDeviceGetDefaultQueue(Device);