The IMAPISupport::GetMemAllocRoutines method retrieves the addresses of the MAPI memory allocation and deallocation functions: MAPIAllocateBuffer, MAPIAllocateMore, and MAPIFreeBuffer.
HRESULT GetMemAllocRoutines(
LPALLOCATEBUFFER FAR * lppAllocateBuffer,
LPALLOCATEMORE FAR * lppAllocateMore,
LPFREEBUFFER FAR * lppFreeBuffer
);
The IMAPISupport::GetMemAllocRoutines method is implemented for all support objects. Service providers call GetMemAllocRoutines to get the addresses of the three memory allocation functions passed to their initialization function: ABProviderInit, MSProviderInit, or XPProviderInit.
MAPIAllocateBuffer, MAPIAllocateMore, MAPIFreeBuffer