IMAPISupport::GetMemAllocRoutines

The IMAPISupport::GetMemAllocRoutines method retrieves the addresses of the MAPI memory allocation and deallocation functions: MAPIAllocateBuffer1MW3BAZ, MAPIAllocateMoreB1SGX_, and MAPIFreeBuffer16U06F.

Quick Info

See IMAPISupport : IUnknownA6YDUA.

HRESULT GetMemAllocRoutines(

    LPALLOCATEBUFFER FAR * lppAllocateBuffer,

 

    LPALLOCATEMORE FAR * lppAllocateMore,

 

    LPFREEBUFFER FAR * lppFreeBuffer

 

   )

 

 

Parameters

lppAllocateBuffer

[out] Pointer to a pointer to the MAPIAllocateBuffer1MW3BAZ function. The MAPIAllocateBuffer function allocates memory.

lppAllocateMore

[out] Pointer to a pointer to the MAPIAllocateMoreB1SGX_ function. The MAPIAllocateMore function allocates additional memory for memory originally allocated with MAPIAllocateBuffer.

lppFreeBuffer

[out] Pointer to a pointer to the MAPIFreeBuffer16U06F function. The MAPIFreeBuffer function frees memory.

 

Return Values

S_OK

The function addresses were successfully returned.

 

Remarks

The IMAPISupport::GetMemAllocRoutines method is implemented for all support objects. Service providers call IMAPISupport::GetMemAllocRoutines to get the addresses of the three memory allocation functions passed to their initialization function: ABProviderInitDN1VRN, MSProviderInit2AMNAUH, or XPProviderInit.S2ZUT.

See Also

MAPIAllocateBuffer, MAPIAllocateMore, MAPIFreeBuffer