Group: Process and Thread - Library: kernel32
Sets the priority class for the specified process. This value together with the priority value of each thread of the process determines each thread"s base priority level.
Reading and setting the priority class values for the current process and thread
BOOL SetPriorityClass(
HANDLE hProcess, // handle to process
DWORD dwPriorityClass // priority class
);
DECLARE INTEGER SetPriorityClass IN kernel32;
INTEGER hProcess,;
INTEGER dwPriorityClass
hProcess [in] Handle to the process.
dwPriorityClass [in] Specifies the priority class for the process. This parameter can be one of the predefined values.
If the function succeeds, the return value is nonzero. If the function fails, the return value is zero.