Function FirstProcess(byval hProc As HANDLE) As Long
Функция устанавливает перечисление процессов на первый процесс
hProc - хендл снимка процессов, может быть получен с помощью InitProcess
Windows , Linux
#Include "window9.bi"
Var pr=InitProcess
If pr<>-1 And FirstProcess(pr)<>0 Then
Do
? GetNameProcess(),GetIDProcess()
Loop Until NextProcess(pr)=0
CloseHandle(pr)
EndIf
Sleep
Created with the Personal Edition of HelpNDoc: Easy CHM and documentation editor