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

# SetThreadErrorMode(3w)

## NAME

**SetThreadErrorMode** (KERNEL32.@)

## SYNOPSIS

BOOL SetThreadErrorMode\
  (\
   DWORD   *mode*,\
   LPDWORD *oldmode*\
  )

## DESCRIPTION

Set the thread local error *mode*.

## PARAMS

*mode* **\[In\]**  The new error *mode*, a bitwise or of **SEM\_FAILCRITICALERRORS**, **SEM\_NOGPFAULTERRORBOX** and **SEM\_NOOPENFILEERRORBOX**.

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

## RETURNS

**Success:** **TRUE**

**Failure:** **FALSE**, check GetLastError

## IMPLEMENTATION

Declared in **"winbase.h"**.

Implemented in **"dlls/kernel32/thread.c"**.

Debug channel **"thread"**.
