This documentation is archived and is not being maintained.


Last modified: January 16, 2009

Applies to: Office 2010 | Outlook 2010 | Visual Studio

Allocates a memory buffer that is linked to another buffer previously allocated with the MAPIAllocateBuffer function.

Header file:


Implemented by:


Called by:

Client applications and service providers

SCODE MAPIAllocateMore(
  ULONG cbSize,
  LPVOID lpObject,
  LPVOID FAR * lppBuffer


[in] Size, in bytes, of the new buffer to be allocated.


[in] Pointer to an existing MAPI buffer allocated using MAPIAllocateBuffer.


[out] Pointer to the returned, newly allocated buffer.


The call succeeded and has returned a pointer to the requested memory.

During MAPIAllocateMore call processing, the calling implementation acquires a block of memory from the operating system. The memory buffer is allocated on an even-numbered byte address. On platforms where long integer access is more efficient, the operating system allocates the buffer on an address whose size in bytes is a multiple of four.

The only way to release a buffer allocated with MAPIAllocateMore is to pass the buffer pointer specified in the lpObject parameter to the MAPIFreeBuffer function. The link between the memory buffers allocated with MAPIAllocateBuffer and MAPIAllocateMore enables MAPIFreeBuffer to release both buffers with a single call.