HeapSize
HeapSize returns the size, in bytes, of a memory block allocated from a heap by HeapAlloc or HeapReAlloc.
Syntax
DWORD HeapSize( HANDLE hHeap, DWORD Flags, LPCVOID lpMem );
Parameters
hHeap
The heap in which the memory block resides. This handle is returned by GetProcessHeap.
Flags
Ignored.
lpMem
A pointer to the memory block whose size the function will obtain. This pointer is returned by HeapAlloc or HeapReAlloc.
Return Value
The size, in bytes, of the allocated memory block if the function succeeds, 0XFFFFFFFF if the function fails
The function does not call SetLastError. An application cannot call GetLastError for extended error information.
Requirements
Minimum Supported Version | RTX64 2013 |
Header | windows.h |
Library | Rtx_Rtss.lib |
See Also: