SetThreadPriority

SetThreadPriority sets the priority value for the specified thread.

Syntax

BOOL SetThreadPriority(
    HANDLE hThread,
    int nPriority
);

Parameters

hThread

The thread whose priority value is to be set.

nPriority

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

Return Values

TRUE if the function succeeds, FALSE if the function fails

To get extended error information, call GetLastError.

Requirements

Library Rtx_Rtss.lib

See Also:

GetThreadPriority

RtGetThreadPriority

RtSetThreadPriority

IntervalZero.com | Support | Give Feedback