Export (0) Print
Expand All

IMalloc::DidAlloc method

Determines whether this allocator was used to allocate the specified block of memory.

Syntax


int DidAlloc(
  [in]  void *pv
);

Parameters

pv [in]

A pointer to the block of memory. If this parameter is a NULL pointer, -1 is returned.

Return value

This method can return the following values.

Return valueDescription
1

The block of memory was allocated by this allocator.

0

The block of memory was not allocated by this allocator.

-1

This method cannot determine whether this allocator allocated the block of memory.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

ObjIdl.h

IDL

ObjIdl.idl

IID

IID_IMalloc is defined as 00000002-0000-0000-C000-000000000046

See also

IMalloc

 

 

Community Additions

ADD
Show:
© 2014 Microsoft