DWORD HeapSize(hHeap, lpMem) | |||||
HANDLE hHeap; | /* identifies the heap | */ | |||
LPSTR lpMem; | /* address of the memory to return size for | */ |
The HeapSize function returns the size of a heap memory block.
hHeap
Identifies the heap. This handle is returned by the HeapCreate function.
lpMem
Points to the memory block to return the size for. This pointer is returned by the HeapAlloc function.
The return value is the size of the allocated memory object if the function is successful. Otherwise, the return value is zero. Use the GetLastError function to obtain extended error information.
HeapAlloc