Partager via


MAPIReallocateBuffer

Applies to: Office 2010 | Outlook 2010 | Visual Studio

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
);

Parameters

  • 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.

Remarks

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.

See Also

Reference

MAPIAllocateBuffer