GetThreadPriority

GetThreadPriority returns 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.

Syntax

INT GetThreadPriority(
    HANDLE hThread
);

Parameters

hThread

The thread identifier.

Return Values

The thread's priority level if the function succeeds, the value of THREAD_PRIORITY_ERROR_RETURN if the function fails

To get extended error information, call GetLastError.

Remarks

See Thread Priorities in the Application Development Guide for details on thread mapping priorities and the relationship between Win32 and RTSS thread priorities.

Requirements

Library Rtx_Rtss.lib

See Also:

CreateThread

RtGetThreadPriority

RtSetThreadPriority

SetThreadPriority

IntervalZero.com | Support | Give Feedback