IoIsErrorUserInduced - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdm.h

BOOLEAN IoIsErrorUserInduced(
   Status
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-ioiserroruserinduced)

IoIsErrorUserInduced macro

Description

The IoIsErrorUserInduced routine determines whether an I/O error encountered while processing a request to a removable-media device was caused by the user.

Parameters

Status [in]

Specifies the current NTSTATUS value, usually within the driver's DpcForIsr routine.

Syntax

BOOLEAN IoIsErrorUserInduced(
   Status
);

Remarks

IoIsErrorUserInduced returns TRUE if an I/O request failed because of a user-induced error.

This routine indicates whether an I/O request failed for one of the following user-correctable conditions:

STATUS_DEVICE_NOT_READY

STATUS_IO_TIMEOUT

STATUS_MEDIA_WRITE_PROTECTED

STATUS_NO_MEDIA_IN_DEVICE

STATUS_UNRECOGNIZED_MEDIA

STATUS_VERIFY_REQUIRED

STATUS_WRONG_VOLUME

If IoIsErrorUserInduced returns TRUE, the removable-media driver must call IoSetHardErrorOrVerifyDevice before completing the IRP.

See also

IoAllocateErrorLogEntry

IoSetHardErrorOrVerifyDevice

IoWriteErrorLogEntry