FirstProcess

Process ››
Parent Previous Next

Язык программирования FreeBasic

 

FirstProcess

FirstProcess(handle)

Функция устанавливает перечисление процессов на первый процесс.

handle - Хендл снимка процессов, может быть получен с помощью InitProcess 

Пример:


#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



http://mneniya.ucoz.ru/

Created with the Personal Edition of HelpNDoc: Easily create EPub books