Stores information about the blocks of a heap that has been allocated by a process into an array.

AHeapBlocks(cArrayName, nProcessID, nHeapID)

Parameters

cArrayName
On return the array contains the following information from the HEAPENTRY32 structure.
ColumnContentDatatype
1A handle to the heap block.N
2The linear address of the start of the block.N
3The size of the heap block, in bytes.N
4FlagsN
nProcessID

The identifier of the process context that owns the heap.

nHeapID

The identifier of the heap to be enumerated.

Return Value

The number of heap blocks.

See Also

Reference

AProcesses
AProcessHeaps
AProcessModules
AProcessThreads

Used WinApi functions

Heap32First
Heap32Next