Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Show all processes
#1
Is there a way to list all running processes? I need to know every filename and process id..
#2
sys.EnumProcessesEx
#3
Gintaras Wrote:sys.EnumProcessesEx
How I use it? I tried to make something like this, but it doesn't work:

Code:
Copy      Help
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..
#4
&epe, &pids

Also, the function itself creates arrays.

Code:
Copy      Help
ARRAY(int) epe
ARRAY(str) pids
int i

EnumProcessesEx(&epe,&pids,0)

for(i 0 epe.len)
,out epe[i]
,out pids[i]


Forum Jump:


Users browsing this thread: 1 Guest(s)