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

# RtlGetLastWin32Error(3w)

## NAME

**RtlGetLastWin32Error** (NTDLL.@)

## SYNOPSIS

DWORD RtlGetLastWin32Error\
  (\
  )

## DESCRIPTION

Get the current per-thread error value set by a system function or the user.

## PARAMS

None.

## RETURNS

The current error value for the thread, as set by **SetLastWin32Error(3w)** or **[SetLastError(3w)](/SetLastError/3w.md)**.

## IMPLEMENTATION

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

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

Debug channel **"ntdll"**.
