|
IMalloc::DidAlloc
Determines if this allocator was used to allocate the specified block of
memory.
int DidAlloc(
void *pv
| //The pointer to the memory block
| );
|
|
Parameter
pv
Specifies the pointer to the memory block; can be a NULL pointer, in which
case, -1 is returned.
Return Values
-
The memory block was allocated by this IMalloc instance.
0
The memory block was not allocated by this IMalloc instance.
-1
DidAlloc is unable to determine whether or not it allocated the memory block.
Comments
Calling IMalloc::DidAlloc is useful if a application is using multiple allocations, and needs to know
whether a previously allocated block of memory was allocated by a particular
allocation.
See Also
IMalloc::Alloc, IMalloc::HeapMinimize, 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 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
|