Posts: 62
Threads: 19
Joined: Jan 2007
Is there a way to list all running processes? I need to know every filename and process id..
Posts: 12,142
Threads: 143
Joined: Dec 2002
Posts: 62
Threads: 19
Joined: Jan 2007
Gintaras Wrote:sys.EnumProcessesEx
How I use it? I tried to make something like this, but it doesn't work:
ARRAY(int) epe
ARRAY(str) pids
int i
str bin
sys.EnumProcessesEx(&epe,&pids,0)
for(i 0 epe.len)
bin.from(pids[i] ":" epe[i])
out bin
EDIT: Now it works..
Posts: 12,142
Threads: 143
Joined: Dec 2002
&epe, &pids
Also, the function itself creates arrays.
ARRAY(int) epe
ARRAY(str) pids
int i
EnumProcessesEx(&epe,&pids,0)
for(i 0 epe.len)
,out epe[i]
,out pids[i]