 |
HeapLock ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Attempts to acquire the critical section object, or lock, that is associated with a specified heap. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL HeapLock(
HANDLE hHeap // handle to heap
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER HeapLock IN kernel32;
INTEGER hHeap
|
 |
 |
 |
| Parameters: |
 |
hHeap
[in] Handle to the heap to lock for exclusive access by the calling thread. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. |
 |
 |
| My comment: |
 |
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. |
 |
 |
| Word Index links for the HeapLock : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-10-26 19:10:16 | | Modified: | 2001-11-26 16:03:49 | Visited in last 7 days: 16 |