Code: Alles auswählen
SetPriorityClass(GetCurrentProcess, HIGH_PRIORITY_CLASS);
Code: Alles auswählen
SetPriorityClass(GetCurrentProcess, HIGH_PRIORITY_CLASS);
Code: Alles auswählen
ShowMessage(IntToStr(fpGetPriority(PRIO_PROCESS,FpGetpid)));
fpSetPriority(PRIO_PROCESS, FpGetpid, -20);
ShowMessage(IntToStr(fpGetPriority(PRIO_PROCESS,FpGetpid)));
Only the superuser can specify a negative N, i.e. increase the rate at which the process is run.