[Applies to KMDF and UMDF]
The WdfRequestRequeue method returns an I/O request to the head of the I/O queue from which it was delivered to the driver.
NTSTATUS WdfRequestRequeue( WDFREQUEST Request );
A handle to a framework request object.
WdfRequestRequeue returns STATUS_SUCCESS if the operation succeeds. Otherwise, this method might return one of the following values:
||An input parameter is invalid.|
This value is returned if one of the following occurs:
This method might also return other NTSTATUS values.
A bug check occurs if the driver supplies an invalid object handle.
A driver can call WdfRequestRequeue only if it using the manual dispatching method for the I/O queue.
If the driver calls WdfRequestRequeue after calling WdfIoQueuePurge, the requeue attempt may succeed before the purge is complete. In versions 1.9 and earlier of KMDF, this sequence causes the operating system to crash. This problem is fixed in KMDF version 1.11 and later.
For more information about WdfRequestRequeue, see Requeuing I/O Requests.
The following code example returns a specified I/O request to the queue from which the driver received the request.
NTSTATUS status; status = WdfRequestRequeue(request);
|Minimum KMDF version||1.0|
|Minimum UMDF version||2.0|
|Header||wdfrequest.h (include Wdf.h)|
|Library||Wdf01000.sys (KMDF); WUDFx02000.dll (UMDF)|
|DDI compliance rules||DriverCreate, InvalidReqAccess, InvalidReqAccessLocal, KmdfIrql, KmdfIrql2|