Group: Process and Thread - Library: kernel32
Retrieves 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
int GetThreadPriority(
HANDLE hThread // handle to thread
);
DECLARE INTEGER GetThreadPriority IN kernel32;
INTEGER hThread
hThread [in] Handle to the thread.
If the function succeeds, the return value is the thread"s priority level. If the function fails, the return value is THREAD_PRIORITY_ERROR_RETURN = MAXLONG = 0x7FFFFFFF.