RtlNtStatusToDosErrorNoTeb - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

_When_(Status < 0, _Out_range_(>, 0))
_When_(Status >= 0, _Out_range_(==, 0))
NTSYSAPI
ULONG
NTAPI
RtlNtStatusToDosErrorNoTeb(
    _In_ NTSTATUS Status
    );

#endif

View code on GitHub
// ntifs.h

NTSYSAPI ULONG RtlNtStatusToDosErrorNoTeb(
  [in] NTSTATUS Status
);
View the official Windows Driver Kit DDI reference

NtDoc

This function is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (nf-ntifs-rtlntstatustodoserrornoteb)

RtlNtStatusToDosErrorNoTeb function

Description

The RtlNtStatusToDosErrorNoTeb routine converts the specified NTSTATUS code to its equivalent system error code. Reserved for system use.

Parameters

Status [in]

The NTSTATUS code to be converted.

Return value

RtlNtStatusToDosErrorNoTeb returns the corresponding system error code. Error codes are defined in Winerror.h. For more information about system error codes, see System Error Codes.

Remarks

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