Returns or modifies the priority of an application currently run.
// Select the application to use
nIndex is int = TableSelect(TABLE_Table1)
IF nIndex <> -1 THEN
// Priority of the selected application?
i is int = ExePriority(TABLE_Table1.PID[nIndex])
SWITCH i
CASE exeLowPriority
Info("Low priority")
CASE exeHighPriority
Info("High priority")
CASE exeBelowNormalPriority
Info("Priority less than standard")
CASE exeNormalPriority
Info("Standard priority")
CASE exeAboveNormalPriority
Info("Priority greater than standard")
CASE exeRealTimePriority
Info("Real-time priority")
END
END
Syntax
Modifying the priority of an application currently run Hide the details
ExePriority(<Application identifier> , <New priority>)
<Application identifier>: Integer constant
Identifier of the application to use. This identifier is returned by ExeListProcess.
<New priority>: Integer constant
New priority for the specified application: | |
exeAboveNormalPriority | Priority greater than exeNormalPriority and less than exeRealTimePriority. This constant is available for Windows 2000 and XP. |
exeBelowNormalPriority | Priority greater than exeLowPriority and less than exeNormalPriority This constant is available for Windows 2000 and XP. |
exeHighPriority | High priority. |
exeLowPriority | Low priority. |
exeNormalPriority | Priority greater than exeBelowNormalPriority and less than exeAboveNormalPriority. |
Finding out the priority of an application currently run Hide the details
<Result> = ExePriority(<Application identifier>)
<Result>: Integer constant
Priority of the specified application: | |
exeAboveNormalPriority | Priority greater than exeNormalPriority and less than exeRealTimePriority. This constant is available for Windows 2000 and XP. |
exeBelowNormalPriority | Priority greater than exeLowPriority and less than exeNormalPriority. This constant is available for Windows 2000 and XP. |
exeHighPriority | High priority |
exeLowPriority | Low priority |
exeNormalPriority | Priority greater than exeBelowNormalPriority and less than exeAboveNormalPriority. |
exeRealTimePriority | Real-time priority. |
<Application identifier>: Integer constant
Identifier of the application to use. This identifier is returned by ExeListProcess.
Business / UI classification: Business Logic