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

# GetThreadId(3w)

## NAME

**GetThreadId** (KERNEL32.@)

## SYNOPSIS

DWORD GetThreadId\
  (\
   HANDLE *Thread*\
  )

## DESCRIPTION

Retrieve the identifier of a thread.

## PARAMS

*Thread* **\[In\]**  The thread to retrieve the identifier of.

## RETURNS

**Success:** Identifier of the target thread.

**Failure:** **0**

## IMPLEMENTATION

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

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

Debug channel **"thread"**.
