Product SiteDocumentation Site

8.63. SysSetPriority


>>-SysSetPriority(class,delta)---------------------------------><

Changes the priority of the current process. A return code of 0 indicates no error.
Parameters:
class
The new process priority class. The allowed classes are:
0 or "IDLE"
Idle time priority
1 or "NORMAL"
Regular priority
2 or "HIGH"
High or time-critical priority
3 or "REALTIME"
Real-time priority
delta
The change applied to the process priority level. delta must be in the range -15 to +15. It can also be a symbolic name:
  • "IDLE" for -15
  • "LOWEST" for -2
  • "BELOW_NORMAL" for -1
  • "NORMAL" for 0
  • "ABOVE_NORMAL" for 1
  • "HIGHEST" for 2
  • "TIME_CRITICAL" for 15
0
No errors.
Other
An error occurred. A Windows System Error code (Section 8.1, “A Note on Error Codes”) is returned. This may be one of the following, but could be others.
307
Invalid priority class.