PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns or modifies the priority of an application currently run.
Example
// Select the application to use
nSubscript is int = TableSelect(TABLE_Table1)
IF nSubscript <> -1 THEN
// Priority of the selected application?
i is int = ExePriority(TABLE_Table1.PID[nSubscript])
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:
exeLowPriorityLow priority
exeHighPriorityHigh priority
exeBelowNormalPriorityPriority greater than exeLowPriority and less than exeNormalPriority
This constant is available for Windows 2000 and XP.
exeNormalPriorityPriority greater than exeBelowNormalPriority and less than exeAboveNormalPriority
exeAboveNormalPriorityPriority greater than exeNormalPriority and less than exeRealTimePriority
This constant is available for Windows 2000 and XP.

Finding out the priority of an application currently run Hide the details

<Result> = ExePriority(<Application identifier>)
<Result>: Integer constant
Priority of the specified application:
exeLowPriorityLow priority
exeHighPriorityHigh priority
exeBelowNormalPriorityPriority greater than exeLowPriority and less than exeNormalPriority
This constant is available for Windows 2000 and XP.
exeNormalPriorityPriority greater than exeBelowNormalPriority and less than exeAboveNormalPriority
exeAboveNormalPriorityPriority greater than exeNormalPriority and less than exeRealTimePriority
This constant is available for Windows 2000 and XP.
exeRealTimePriorityReal-time priority
<Application identifier>: Integer constant
Identifier of the application to use. This identifier is returned by ExeListProcess.
Component : wd240std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment