IMAPISupport::GetMemAllocRoutines
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
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
);
Parameters
lppAllocateBuffer
[out] A pointer to a pointer to the MAPIAllocateBuffer function. MAPIAllocateBuffer allocates memory.lppAllocateMore
[out] A pointer to a pointer to the MAPIAllocateMore function. MAPIAllocateMore allocates additional memory for memory that was originally allocated by using MAPIAllocateBuffer.lppFreeBuffer
[out] A pointer to a pointer to the MAPIFreeBuffer function. MAPIFreeBuffer frees memory.
Return Value
- S_OK
The function addresses were successfully returned.
Remarks
The IMAPISupport::GetMemAllocRoutines method is implemented for all support objects. Service providers call GetMemAllocRoutines to get the addresses of the three memory allocation functions that are passed to their initialization function (ABProviderInit, MSProviderInit, or XPProviderInit).