Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.11 KB

File metadata and controls

53 lines (36 loc) · 1.11 KB

Home

Function name : Process32First

Group: Performance Monitoring - Library: kernel32


Retrieves information about the first process encountered in a system snapshot.


Code examples:

Enumerating Processes -- Win9*

Declaration:

BOOL WINAPI Process32First(
  HANDLE hSnapshot,
  LPPROCESSENTRY32 lppe
);  

FoxPro declaration:

DECLARE INTEGER Process32First IN kernel32;
	INTEGER  hSnapshot,;
	STRING @ lppe  

Parameters:

hSnapshot [in] Handle to the snapshot returned from a previous call to the CreateToolhelp32Snapshot function.

lppe [in/out] Pointer to a PROCESSENTRY32 structure.


Return value:

Returns TRUE if the first entry of the process list has been copied to the buffer or FALSE otherwise.


Comments:

Windows NT/2000/XP: Included in Windows 2000 and later.
Windows 95/98/Me: Included in Windows 95 and later.