Function Reference


Retrieves the size of a memory block allocated from the internal library heap

#include <WinAPIMem.au3>
_WinAPI_GetMemorySize ( $pMemory )


$pMemory A pointer to the valid memory block whose size to be retrieved.

Return Value

Success: The size of the specified memory block, in bytes.
Failure: 0 and sets the @error flag to non-zero.


The _WinAPI_GetMemorySize() function accepts only the pointers returned by some _WinAPI_* functions (see description).