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

# SetThreadContext(3w)

## NAME

**SetThreadContext** (KERNEL32.@)

## SYNOPSIS

BOOL SetThreadContext\
  (\
   HANDLE         *handle*,\
   const CONTEXT\* *context*\
  )

## PARAMS

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

**\[In\]**  Address of *context* structure.

## DESCRIPTION

SetThreadContext \[**KERNEL32**.@\] Sets *context* of thread.

## RETURNS

**Success:** **TRUE**

**Failure:** **FALSE**

## IMPLEMENTATION

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

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

Debug channel **"thread"**.
