MAPIReallocateBuffer

Office 2013 and later

Last modified: July 23, 2011

Applies to: Outlook

Reallocates a memory buffer. It is used with the MAPIAllocateBuffer function.

Header file:

omapix.h

Called by:

Client applications and service providers

STDMETHODIMP_(SCODE) MAPIReallocateBuffer
(
LPVOID lpv, 
ULONG ulSize, 
LPVOID * lppv
);

lpv

A pointer to the memory to be reallocated.

ulSize

The size, in bytes, of the buffer to be allocated.

lppv

A pointer to the returned allocated buffer.

MAPIReallocateBuffer allocates a new block of memory of the requested size and copies the contents of the buffer that is passed into this new block of memory. If the block of memory that is passed contains internal pointers, the pointers do not change to match the new location.

Show: