Group: Memory Management - Library: kernel32
Obtaining heap handles and enumerating memory blocks for the current VFP session (WinNT only)
BOOL HeapLock(
HANDLE hHeap // handle to heap
);
DECLARE INTEGER HeapLock IN kernel32;
INTEGER hHeap
hHeap [in] Handle to the heap to lock for exclusive access by the calling thread.
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.
The HeapLock function is primarily useful for preventing the allocation and release of heap memory by other threads while the calling thread uses the HeapWalk function.
Each call to HeapLock must be matched by a corresponding call to the HeapUnlock function.