PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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 the list of applications currently run. These applications can correspond to WINDEV or WINDEV Mobile applications, or to other applications.
For each application found, you have the ability to find out:
  • its identifier.
  • the identifier of parent process (the one that started the application).
  • the name and extension of its executable.
  • the name and full path of its executable.
  • the current amount of memory used.
  • the maximum amount of memory used.
  • Versions 20 and later
    the command line used by the executable.
    New in version 20
    the command line used by the executable.
    the command line used by the executable.
Example
// Add the applications currently run into the "LIST_App" control
ListAdd(LIST_App, ExeListProcess(exePID, exeShortName))
Syntax
<Result> = ExeListProcess([<First information> [... [, <Seventh information>]]])
<Result>: Character string
List of applications currently run. The different applications are separated by CR characters (Carriage Return).
The list has the following format:
<1st information> + TAB + <2nd information> + CR +...

If no information is requested, the list has the following format: <Name and extension of the application executable>.
<First information>: Optional Integer constant
First information that will be returned for each application currently run:
Versions 20 and later
exeCommandLine
New in version 20
exeCommandLine
exeCommandLine
Command line of application executable.
Caution:
  • The current user must have sufficient rights to read the content of the memory linked to the process.
  • The 32-bit applications cannot access the information of 64-bit processes.
exeMemoryAmount of memory currently consumed by the application.
This constant is available for Windows NT, 2000 and XP. In the other cases, an empty string ("") is returned.
exeMaxMemoryMaximum amount of memory consumed by the application.
This constant is available for Windows NT, 2000 and XP. In the other cases, an empty string ("") is returned.
exeShortName
(Default value)
Name and extension of application executable.
exeLongNameName and full path of application executable.
exePIDApplication identifier.
exeParentPIDIdentifier of parent process (the one that started the application).
<Seventh information>: Optional Integer constant
Seventh information that will be returned for each application currently run:
Versions 20 and later
exeCommandLine
New in version 20
exeCommandLine
exeCommandLine
Command line of application executable.
Caution:
  • The current user must have sufficient rights to read the content of the memory linked to the process.
  • The 32-bit applications cannot access the information of 64-bit processes.
exeMemoryAmount of memory currently consumed by the application.
This constant is available for Windows NT, 2000 and XP. In the other cases, an empty string ("") is returned.
exeMaxMemoryMaximum amount of memory consumed by the application.
This constant is available for Windows NT, 2000 and XP. In the other cases, an empty string ("") is returned.
exeShortName
(Default value)
Name and extension of application executable.
exeLongNameName and full path of application executable.
exePIDApplication identifier.
exeParentPIDIdentifier of parent process (the one that started the application).
Remarks
ExeListProcess returns no error code. To find out whether an error was generated by this function, use the ErrorOccurred variable. If an error occurs, you can get the details of the error with ErrorInfo.
Component: wd270std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment