C28143
warning C28143: A dispatch routine that calls IoMarkIrpPending must also return STATUS_PENDING
A dispatch routine that calls IoMarkIrpPending includes at least one path in which the driver returns a value other than STATUS_PENDING.
Example
The following code example elicits this warning.
IoMarkIrpPending(Irp);
...
return STATUS_SUCCESS;
The following code example avoids this warning.
IoMarkIrpPending(Irp);
...
return STATUS_PENDING;
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for