Core Function ProcessSetPriority

From Sputnik Wiki
Jump to: navigation, search
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
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox