Expand Minimize

RtlNtStatusToDosError routine

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

Syntax


ULONG RtlNtStatusToDosError(
  _In_  NTSTATUS Status
);

Parameters

Status [in]

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

Version

The RtlNtStatusToDosError routine is available on Microsoft Windows 2000 and later versions of Windows.

Header

Ntifs.h (include Ntifs.h)

Library

Ntoskrnl.lib

IRQL

< DISPATCH_LEVEL

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft