BOOL SetThreadPriority( int nPriority );
Return Value
Nonzero if function was successful; otherwise 0.
Parameters
nPriority
Specifies the new thread priority level within its priority class. This parameter must be one of the following values, listed from highest priority to lowest:
For more information on these priorities, see ::SetThreadPriority in the Win32 SDK Programmer’s Reference, Volume 4.
Remarks
This function sets the priority level of the current thread within its priority class. It can only be called after CreateThread successfully returns.