 |
HeapSize ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The HeapSize function retrieves the size of a memory block allocated from a heap by the HeapAlloc or HeapReAlloc function. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
DWORD HeapSize(
HANDLE hHeap, // handle to heap
DWORD dwFlags, // heap size options
LPCVOID lpMem // pointer to memory
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER HeapSize IN kernel32;
INTEGER hHeap,;
INTEGER dwFlags,;
INTEGER lpMem
|
 |
 |
 |
| Parameters: |
 |
hHeap
[in] Specifies the heap in which the memory block resides. This handle is returned by the HeapCreate or GetProcessHeap function.
dwFlags
[in] Specifies several controllable aspects of accessing the memory block.
lpMem
[in] Pointer to the memory block whose size the function will obtain. This is a pointer returned by the HeapAlloc or HeapReAlloc function. |
 |
 |
| Return value: |
 |
If the function succeeds, the return value is the size, in bytes, of the allocated memory block.
If the function fails, the return value is -1. The function does not call SetLastError. An application cannot call GetLastError for extended error information. |
 |
 |
| Word Index links for the HeapSize : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-12-01 08:23:59 | | Modified: | 2001-12-01 08:26:17 | Visited in last 7 days: 11 |