Group: Memory Management - Library: kernel32
Enumerates the memory blocks in a specified heap created or manipulated by heap memory allocators such as HeapAlloc, HeapReAlloc, and HeapFree.
Obtaining heap handles and enumerating memory blocks for the current VFP session (WinNT only)
BOOL HeapWalk(
HANDLE hHeap, // heap to enumerate
LPPROCESS_HEAP_ENTRY lpEntry // state information
);
DECLARE INTEGER HeapWalk IN kernel32;
INTEGER hHeap,;
STRING @ lpEntry
hHeap [in] Handle to the heap whose memory blocks you wish to enumerate.
lpEntry [in/out] Pointer to a PROCESS_HEAP_ENTRY structure that maintains state information for a particular heap enumeration.
If the function succeeds, the return value is nonzero.
Windows NT/2000/XP: Included in Windows NT 3.5 and later.
Windows 95/98/Me: Unsupported.