|
IMalloc::GetSize
Returns the size (in bytes) of a previously allocated memory block previously
allocated with IMalloc::Alloc or IMalloc::Realloc.
ULONG GetSize(
void *pv
| //Points to the memory block fo which the size is requested
| );
|
|
Parameter
pv
[in] Points to the memory block for which the size is requested.
Return Value
Either the size of the allocated memory block in bytes or, if pv is a NULL pointer, -1.
Comments
Returns the size (in bytes) of a memory block previously allocated with IMalloc::Alloc or IMalloc::Realloc.The size returned is the actual size of the allocation; it may be greater
than the size requested when the allocation was made.
See Also
IMalloc::Alloc, IMalloc::Realloc
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|