Returns the size (in bytes) of a memory block previously allocated with IMalloc::Alloc or IMalloc::Realloc.
ULONG GetSize(
void *pv //Pointer to the memory block for which the size is
//requested
);
The size of the allocated memory block in bytes or, if pv is a NULL pointer, -1.
To get the size in bytes of a memory block, the block must have been previously allocated with IMalloc::Alloc or IMalloc::Realloc. The size returned is the actual size of the allocation, which may be greater than the size requested when the allocation was made.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in objidl.h.
IMalloc::Alloc, IMalloc::Realloc