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

# TerminateThread(3w)

## NAME

**TerminateThread** (KERNEL32.@)

## SYNOPSIS

BOOL TerminateThread\
  (\
   HANDLE *handle*,\
   DWORD  *exit\_code*\
  )

## PARAMS

*handle* **\[In\]**  Handle to thread.

*exit\_code* **\[In\]**  Exit code for thread.

## DESCRIPTION

TerminateThread \[**KERNEL32**.@\] Terminates a thread.

## RETURNS

**Success:** **TRUE**

**Failure:** **FALSE**

## IMPLEMENTATION

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

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

Debug channel **"thread"**.
