SetPriorityClass(设置进程优先级)
function SetPriorityClass(hProcess: THandle; dwPriorityClass: DWORD): BOOL;
优先级 | 标志 | 优先级值 |
idle (低) | IDLE_PRIORITY_CLASS | 4 |
Below (低于标准) | BELOW_NORMAL_PRIORITY_CLASS | |
normal (标准) | NORMAL_PRIORITY_CLASS | 7或9 |
Above (高于标准) | ABOVE_NORMAL_PRIORITY_CLASS | |
high (高) | HIGH_PRIORITY_CLASS | 13 |
realtime (实时) | REALTIME_PRIORITY_CLASS | 24 |