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

# SetLastErrorEx(3w)

## NAME

**SetLastErrorEx** (USER32.@)

## SYNOPSIS

void SetLastErrorEx\
  (\
   DWORD *error*,\
   DWORD *type*\
  )

## PARAMS

*error* **\[In\]**  Per-thread *error* code.

*type* **\[In\]**  Error *type*.

## DESCRIPTION

Sets the last-*error* code.

## RETURNS

None.

## IMPLEMENTATION

Declared in **"winuser.h"**.

Implemented in **"dlls/user32/misc.c"**.

Debug channel **"win"**.
