Changing Irp->IoStatus.Status in a completion routine
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
Hi again,
I have one more question. Is it ok to change Irp->IoStatus.Status from
STATUS_SUCCESS to an error code in a completion routine? I've found lots of
information about completion routines, marking Irps pending and returning
STATUS_CONTINUE_COMPLETION or STATUS_MORE_PROCESSING_REQUIRED but so far
nothing that tells me if I can legally change the Irp->IoStatus.Status
value.
If we can do this, do we need to do anything else like complete the request
again, or changing the status value ok.
TIA,
Jeff.
.
Relevant Pages
- RE: IO Completion Callback
... > 2> your calling thread is always busy and not in an alertable wait state, ... > then no posted completion routine will ever get called. ... It is hard to tell what the previous connection state was. ... other error code. ... (microsoft.public.win32.programmer.networks) - Re: IOCP touching my OVERLAPPED after my Write has completed
... DON'T mix a completion routine and IOCP thread, ... Your code will leak memory in this case. ... WSASendTo() it seems a bit different. ... FreeRequest(req); //in debug I decommit the memory of this request ... (microsoft.public.win32.programmer.kernel) - Irp/Urb Completion Routine Is Called Only Once
... Irp/Urb down the stack? ... On the second request, I see the request take place on the USB bus, and I ... But my Completion Routine is not ... I've tried re-using the original Irp and allocating a new Irp, ... (microsoft.public.development.device.drivers) - Re: Question about completion routine for InternalDeviceControl.
... are you allocating the WDFREQUEST yourself or did it come ... > device manager will stop the driver completely. ... > WdfRequestSetCompletionRoutine; ... > to register a completion routine that just print out the text message and ... (microsoft.public.development.device.drivers) - Re: I/O target from socket doesnt timeout
... Did you set a completion callback for this request? ... status you got in your completion routine? ... I have created an I/O target from a socket but when I send an I/O request ... The socket was created with WSASocket passing WSA_FLAG_OVERLAPPED and I ... (microsoft.public.development.device.drivers) |
|