HeapSize PROC
(MS-Windows)
Returns the size, in bytes, of a memory block
allocated from a heap by the HeapAlloc or the HeapReAlloc
function.
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.
HeapSize PROTO, hHeap:DWORD, ; handle to heap dwFlags:DWORD, ; heap size options lpMem:DWORD ; pointer to memory block Returns: (DWORD) EAX = Size, in bytes, of the allocated memory block, or -1 if function fails. |
Argument | Win Type | MASM Type | Description |
---|---|---|---|
hHeap | HANDLE | DWORD | Specifies the heap in which the memory block
resides. This handle was returned by HeapCreate or GetProcessHeap. |
dwFlags | DWORD | DWORD | Heap control flags. 0 - no flags specified. HEAP_NO_SERIALIZE - mutual exclusion will not be used while HeapSize is accessing the heap. |
lpMem | LPCVOID | DWORD | Pointer to the memory block whose size is
returned. This pointer was returned by HeapAlloc or HeapReAlloc. |
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |