BOOL SetThreadPriority(
HANDLE hThread,
int nPriority
);
Priority Meaning
THREAD_PRIORITY_ABOVE_NORMAL Priority 1 point above the priority class.
THREAD_PRIORITY_BELOW_NORMAL Priority 1 point below the priority class.
THREAD_PRIORITY_HIGHEST Priority 2 points above the priority class.
THREAD_PRIORITY_IDLE Base priority of 1 for IDLE_PRIORITY_CLASS, BELOW_NORMAL_PRIORITY_CLASS, NORMAL_PRIORITY_CLASS, ABOVE_NORMAL_PRIORITY_CLASS, or HIGH_PRIORITY_CLASS processes, and a base priority of 16 for REALTIME_PRIORITY_CLASS processes.
THREAD_PRIORITY_LOWEST Priority 2 points below the priority class.
THREAD_PRIORITY_NORMAL Normal priority for the priority class.
THREAD_PRIORITY_TIME_CRITICAL Base priority of 15 for IDLE_PRIORITY_CLASS, BELOW_NORMAL_PRIORITY_CLASS, NORMAL_PRIORITY_CLASS, ABOVE_NORMAL_PRIORITY_CLASS, or HIGH_PRIORITY_CLASS processes, and a base priority of 31 for REALTIME_PRIORITY_CLASS processes