0 out of 1 rated this helpful - Rate this topic

RtlNtStatusToDosError function

Applies to: desktop apps only

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

Syntax

ULONG WINAPI RtlNtStatusToDosError(
  __in  NTSTATUS Status
);

Parameters

Status [in]

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.

This function has no associated import library. You must use the LoadLibrary and GetProcAddress functions to dynamically link to Ntdll.dll.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Winternl.h

DLL

Ntdll.dll

See also

Error Handling Functions

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
rtlntstatus
ULONG WINAPI RtlNtStatusToDosError(
  __in  NTSTATUS Status
);