Core Function ProcessSetPriority
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> ProcessSetPriority( <pid/name>, <priority> ) </pre> === Description === Changes the priority of a process. === Parameters === ==== pid/name ==== The name or PID of th...") |
m (1 revision) |
Revision as of 21:40, 11 August 2014
ProcessSetPriority( <pid/name>, <priority> )
Contents |
Description
Changes the priority of a process.
Parameters
pid/name
The name or PID of the process to check.
priority
A flag which determines what priority to set
0 - Idle/Low 1 - Below Normal (Not supported on Windows 95/98/ME) 2 - Normal 3 - Above Normal (Not supported on Windows 95/98/ME) 4 - High 5 - Realtime (Use with caution, may make the system unstable)
Return Value
Success: Returns 1.
Failure: Returns 0.
Remarks
None.
Example
Run("Notepad.exe"); ProcessSetPriority("notepad.exe", 0); // Notepad should now have Idle/Low priority