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

# SetThreadPriority(3w)

## NAME

**SetThreadPriority** (KERNEL32.@)

## SYNOPSIS

BOOL SetThreadPriority\
  (\
   HANDLE *hthread*,\
   INT    *priority*\
  )

## PARAMS

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

*priority* **\[In\]**  Thread *priority* level.

## DESCRIPTION

SetThreadPriority \[**KERNEL32**.@\] Sets *priority* for thread.

## RETURNS

**Success:** **TRUE**

**Failure:** **FALSE**

## IMPLEMENTATION

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

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

Debug channel **"thread"**.
