fpGetPriority function
Return process priority.
Declaration
function fpGetPriority(Which: cint; Who: cint): cintDescription
GetPriority returns the priority with which a process is running.
Which process(es) is determined by the Which and Who variables.
Which can be one of the predefined Prio_Process,
Prio_PGrp, Prio_User, in which case Who is the process ID, Process group ID or
User ID, respectively.
For an example, see FpNice.
Errors
Error information is returned solely by the FpGetErrno function: a priority can be a positive or negative value.
- sys_esrch
- No process found using
whichandwho. - sys_einval
-
Whichwas not one ofPrio_Process,Prio_GrporPrio_User.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
