Stores information about the processes currently running on the system into an array.

AProcesses(cArrayName)

Parameters

cArrayName
On return the array contains the following information from the PROCESSENTRY32 structure.
ColumnContentDatatype
1Executable filenameC
2Process IDN
3Parent Process IDN
4Number of threadsN
5Base Priority ClassN

Return Value

The number of processes.

See Also

Reference

AHeapBlocks
AProcessHeaps
AProcessModules
AProcessThreads

Used WinApi functions

CreateToolhelp32Snapshot
Process32First
Process32Next
EnumProcesses (Windows NT only)
OpenProcess (Windows NT only)
EnumProcessModules (Windows NT only)
NtQueryInformationProcess (Windows NT only)
CloseHandle (Windows NT only)