|
|
|
|
|
ExeListProcess (Function) In french: ExeListeProcessus 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.
- the command line used by the executable.
// 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: | | 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.
| exeMemory | Amount 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. | exeMaxMemory | Maximum 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. | exeLongName | Name and full path of application executable.
| exePID | Application identifier. | exeParentPID | Identifier 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: | | 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.
| exeMemory | Amount 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. | exeMaxMemory | Maximum 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. | exeLongName | Name and full path of application executable.
| exePID | Application identifier. | exeParentPID | Identifier of parent process (the one that started the application). |
Remarks ExeListProcess returns no error code. To determine if this function generated an error, use the ErrorOccurred variable. If an error occurs, you can get more details on the error with ErrorInfo.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|