Group: Process and Thread - Library: kernel32
Sets the priority value for the specified thread. This value, together with the priority class of the thread"s process, determines the thread"s base priority level.
Reading and setting the priority class values for the current process and thread
BOOL SetThreadPriority(
HANDLE hThread, // handle to the thread
int nPriority // thread priority level
);
DECLARE INTEGER SetThreadPriority IN kernel32;
INTEGER hThread,;
INTEGER nPriority
hThread [in] Handle to the thread whose priority value is to be set.
nPriority [in] Specifies the priority value for the thread. This parameter can be one of the predefined values.
If the function succeeds, the return value is nonzero. If the function fails, the return value is zero.