|
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.
Versions 20 and laterthe command line used by the executable. New in version 20the command line used by the executable. 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: | | Versions 20 and laterexeCommandLine New in version 20exeCommandLine 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: | | Versions 20 and laterexeCommandLine New in version 20exeCommandLine 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 find out whether an error was generated by this function, use the ErrorOccurred variable. For more details on the error, use ErrorInfo.
This page is also available for…
|
|
|
| |
| | https://youtu.be/6KWxwCIZCIw https://windevdesenvolvimento.blogspot.com/2019/09/dicas-2272-windev-webdev-mobile.html // BTN_ExeListProcess - ExeListProcess - Lista Processos sLista_processos is string sLista_processos_linha is string TableDeleteAll(TVT_PROCESSOS) sLista_processos=ExeListProcess(exePID,exeShortName,exeLongName,exeCommandLine,exeMemory,exeMaxMemory) FOR EACH STRING sLista_processos_linha OF sLista_processos SEPAREE BY CR nPosicao is int=TVT_PROCESSOS.AddLine() programa_memoria is string=ExtractString(sLista_processos_linha, 2, TAB) versao is string=ExeInfo(exeVersion,ExtractString(sLista_processos_linha, 3, TAB)) id is int=ExtractString(sLista_processos_linha, 1, TAB) diretorio is string=fExtractPath(ExtractString(sLista_processos_linha, 3, TAB), fDrive+fDirectory) sComando_linha is string=fExtractPath(ExtractString(sLista_processos_linha, 3, TAB), fDrive+fDirectory) comando_linha is string=ExtractString(sLista_processos_linha, 4, TAB) memoria |
|
|
|
| |
| |
| |
|
| | https://youtu.be/7fMt3B5D6as
https://windevdesenvolvimento.blogspot.com/2019/05/dicas-2114-windev-webdev-mobile-windows.html
// Video sobre Processos Windows, como terminar processos, tabela e grafico
|
|
|
|
| |
| |
| |
|
| 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
|
|
|
|
| |
| |
| |
|
| | 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
|
|
|
|
| |
| |
| |
| |
| |
| |
| | |
| |