RtlNtStatusToDosError function

The RtlNtStatusToDosError routine converts the specified NTSTATUS code to its equivalent system error code.

Syntax

NTSYSAPI ULONG RtlNtStatusToDosError(
  NTSTATUS Status
);

Parameters

Status

The NTSTATUS code to be converted.

Return Value

RtlNtStatusToDosError returns the corresponding system error code. Error codes are defined in Winerror.h.

RtlNtStatusToDosError returns ERROR_MR_MID_NOT_FOUND when the specified NTSTATUS code does not have a corresponding system error code. For more information about system error codes, see System Error Codes.

Remarks

There is no function that provides the inverse functionality of RtlNtStatusToDosError, converting a system error code to its corresponding NTSTATUS code.

Requirements

   
Windows version The RtlNtStatusToDosError routine is available on Microsoft Windows 2000 and later versions of Windows.
Target Platform Universal
Header ntifs.h (include Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL "< DISPATCH_LEVEL"