Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.24 KB

HeapWalk.md

File metadata and controls

53 lines (36 loc) · 1.24 KB

Home

Function name : HeapWalk

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.


Code examples:

Obtaining heap handles and enumerating memory blocks for the current VFP session (WinNT only)

Declaration:

BOOL HeapWalk(
  HANDLE hHeap,                 // heap to enumerate
  LPPROCESS_HEAP_ENTRY lpEntry  // state information
);  

FoxPro declaration:

DECLARE INTEGER HeapWalk IN kernel32;
	INTEGER   hHeap,;
	STRING  @ lpEntry  

Parameters:

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.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

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