Table of contents
TOC
Collapse the table of content
Expand the table of content

C28143

Last Updated: 11/22/2016

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;

Send comments about this topic to Microsoft

© 2017 Microsoft