PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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 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.
Windows Mobile In this version, you can only find out the unique identifier and/or the name and extension of the executables for the applications currently run.
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.
Windows Mobile This constant is not available.
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.
Windows Mobile This constant is not available.
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.
Windows Mobile This constant is not available.
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.
Windows Mobile This constant is not available.
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. To find out the error details, use ErrorInfo.
Components
WINDEVReports and Queries wd230std.dll
Windows Mobile wp230std.dll
Linux wd230std.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Novo Exemplo Lista Processos Tabela e Grafico
Novo Exemplo Lista Processos Tabela e Grafico

s_teste is string=ExeListProcess(exePID,exeShortName,exeLongName,exeMemory)
TableDeleteAll(TABLE_processos1)
FOR EACH STRING s_nome_arquivo OF s_teste SEPAREE BY CR
s_exepid is string=""
s_exeshortname is string=""
s_exelongname is string=""
s_exememory is string=""
n_contador is int=0
FOR EACH STRING s_colunas OF s_nome_arquivo SEPAREE BY TAB
n_contador++
SWITCH n_contador
CASE 1
s_exepid=s_colunas
CASE 2
s_exeshortname=s_colunas
CASE 3
s_exelongname=s_colunas
CASE 4
s_exememory=s_colunas
OTHER CASE
END
END TableAddLine(TABLE_processos1,s_exepid,s_exeshortname,s_exelongname,s_exememory)
END
TableSort(TABLE_processos1,"-COL_Exememory")
grDraw(CHART_processos1)


//Blog com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/08/curso-windev-funcoes-exe-windows-008_13.html
https://www.youtube.com/watch?v=k26SDt9JNCc



De matos AMARILDO
Aug. 15 2016
Exemplo ExeListProcess
Exemplo ExeListProcess

ListAdd(LIST_processo,ExeListProcess(exePID,exeLongName,exeMemory))
ListeAjoute(LIST_processo,ExeListeProcessus(exePID,exeNomLong,exeMémoire))

//exePID - identificador aplicacao // identifier application // l'application d'identificateur
//exeLongName - caminho do aplicativo // application path // chemin d'application
//exeMemory - Quantidade de memoria consumida // memory amount consumed// quantité de mémoire consommée
// exeCommandLine - linha de comando // Command Line // ligne de commande
//exeMaxMemory - quantidade maxima de memoria consumida // Maximum amount of memory consumed
// Montant maximum de mémoire consommée
//exeShortName - nome aplicativo // application name// nom de l'application

//Blog Com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/08/curso-windev-funcoes-exe-windows-008.html
https://www.youtube.com/watch?v=qPyq9sXmRkE
De matos AMARILDO
Aug. 13 2016