RtlNtStatusToDosError function (winternl.h)

Converts the specified NTSTATUS code to its equivalent system error code.

Syntax

ULONG RtlNtStatusToDosError(
  [in] NTSTATUS Status
);

Parameters

[in] Status

The NTSTATUS code to be converted.

Return value

The function returns the corresponding system error code.

Remarks

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

ERROR_MR_MID_NOT_FOUND is returned when the specified NTSTATUS code does not have a corresponding system error code.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header winternl.h
Library ntdll.lib
DLL ntdll.dll

See also

Error Handling Functions