Retrieves a given thread's priority:
- GetThreadPriority returns the priority in the Win32 priority range (THREAD_PRIORITY_IDL to THREAD_PRIORITY_TIME_CRITICAL).
- RtGetThreadPriority returns the RTX priority (0 to 127).
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