ThreadPriority()

Syntax

OldPriority = ThreadPriority(ThreadID, Priority)

Description

Change the priority of the specified thread and returns the old priority. The priority value can go from 1 to 32. 1 is the lowest priority available, 16 is the normal priority and 32 is the time critical priority (highest, please don't use it unless you know what you're doing). If the priority is 0, then the priority isn't changed (useful to only retrieve the thread priority without change it).

Supported OS

Windows

Thread - Index