Stores information about threads of a process into an array.

AProcessThreads(cArrayName, nProcessID)

Parameters

cArrayName
On return the array contains the following information from the THREADENTRY32 structure.
ColumnContentDatatype
1Thread IDN
2Owner Process IDN
3Base PriorityN
nProcessID

The process ID of the process for which to enumerate the threads.

Return Value

The number of threads.

See Also

Reference

AHeapBlocks
AProcesses
AProcessHeaps
AProcessModules

Used WinApi functions

CreateToolhelp32SnapShot
Thread32First
Thread32Next