INtime SDK Help
GetThreadPriority, RtGetThreadPriority (iwin32)
INtime SDK v6 > About INtime > Alternate APIs > iwin32 API > iwin32 API > GetThreadPriority, RtGetThreadPriority (iwin32)

Retrieves a given thread's priority:

INT GetThreadPriority(
    HANDLE hThread
);

INT RtGetThreadPriority(
    HANDLE hThread
);

Parameters

hThread
Handle to the thread.

Return Values

Thread's priority level
Success.
THREAD_PRIORITY_ERROR_RETURN
Failure. For extended error information, see GetLastError.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/iwin32.h
intime/rt/include/winbase.h
iwin32.h
windows.h
iwin32.lib

See Also

SetThreadPriority, Priorities, iwin32 API, iwin32 Overview