---
name: "RtlNtStatusToDosError"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/RtlNtStatusToDosError"
---

# RtlNtStatusToDosError(3w)

## NAME

**RtlNtStatusToDosError** (NTDLL.@)

## SYNOPSIS

ULONG RtlNtStatusToDosError\
  (\
   NTSTATUS *status*\
  )

## DESCRIPTION

Convert an **NTSTATUS** code to a Win32 error code.

## PARAMS

*status* **\[In\]**  Nt error code to map.

## RETURNS

The mapped Win32 error code, or **ERROR\_MR\_MID\_NOT\_FOUND** if there is no mapping defined.

## IMPLEMENTATION

Declared in **"winternl.h"**.

Implemented in **"dlls/ntdll/error.c"**.

Debug channel **"ntdll"**.
