#ifndef _NTRTL_H
_When_(Status < 0, _Out_range_(>, 0))
_When_(Status >= 0, _Out_range_(==, 0))
NTSYSAPI
ULONG
NTAPI
RtlNtStatusToDosErrorNoTeb(
_In_ NTSTATUS Status
);
View code on GitHub// ntifs.h
NTSYSAPI ULONG RtlNtStatusToDosErrorNoTeb(
[in] NTSTATUS Status
);
View the official Windows Driver Kit DDI referenceThis function is documented in Windows Driver Kit.
The RtlNtStatusToDosErrorNoTeb routine converts the specified NTSTATUS code to its equivalent system error code. Reserved for system use.
Status [in]The NTSTATUS code to be converted.
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.
There is no function that provides the inverse functionality of RtlNtStatusToDosErrorNoTeb, converting a system error code to its corresponding NTSTATUS code.