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

# RtlSetThreadErrorMode(3w)

## NAME

**RtlSetThreadErrorMode** (NTDLL.@)

## SYNOPSIS

NTSTATUS RtlSetThreadErrorMode\
  (\
   DWORD   *mode*,\
   LPDWORD *oldmode*\
  )

## DESCRIPTION

Set the thread local error *mode*.

## PARAMS

*mode* **\[In\]**  The new error *mode*.

*oldmode* **\[Out\]**  Destination of the old error *mode* (may be **NULL**).

## RETURNS

**Success:** **STATUS\_SUCCESS**

**Failure:** **STATUS\_INVALID\_PARAMETER\_1**

## IMPLEMENTATION

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

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

Debug channel **"ntdll"**.
