ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Executable functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns or modifies the priority of an application currently run.
Example
// 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:
exeAboveNormalPriorityPriority greater than exeNormalPriority and less than exeRealTimePriority.
This constant is available for Windows 2000 and XP.
exeBelowNormalPriorityPriority greater than exeLowPriority and less than exeNormalPriority
This constant is available for Windows 2000 and XP.
exeHighPriorityHigh priority.
exeLowPriorityLow priority.
exeNormalPriorityPriority 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:
exeAboveNormalPriorityPriority greater than exeNormalPriority and less than exeRealTimePriority.
This constant is available for Windows 2000 and XP.
exeBelowNormalPriorityPriority greater than exeLowPriority and less than exeNormalPriority.
This constant is available for Windows 2000 and XP.
exeHighPriorityHigh priority
exeLowPriorityLow priority
exeNormalPriorityPriority greater than exeBelowNormalPriority and less than exeAboveNormalPriority.
exeRealTimePriorityReal-time priority.
<Application identifier>: Integer constant
Identifier of the application to use. This identifier is returned by ExeListProcess.
Business / UI classification: Business Logic
Component: wd300std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/06/2023

Send a report | Local help