MAPIAllocateBuffer (MAPI32.12)
SCODE MAPIAllocateBuffer ( ULONG cbSize, LPVOID* lppBuffer )
MAPIAllocateBuffer@8 (MAPI32.13).
Allocate a block of memory.
cbSize | [In] | Size of the block to allocate in bytes. |
lppBuffer | [Out] | Destination for pointer to allocated memory. |
Success: S_OK. *lppBuffer is filled with a pointer to a memory block of length cbSize bytes.
Failure: MAPI_E_INVALID_PARAMETER, if lppBuffer is NULL. MAPI_E_NOT_ENOUGH_MEMORY, if the memory allocation fails.
Memory allocated with this function should be freed with MAPIFreeBuffer. Further allocations of memory may be linked to the pointer returned using MAPIAllocateMore. Linked allocations are freed when the initial pointer is feed.
Declared in "include/mapix.h". gitlab.winehq.org/wine/wine/blob/master/include/mapix.h
Implemented in "dlls/mapi32/util.c". gitlab.winehq.org/wine/wine/blob/master/dlls/mapi32/util.c
Debug channel "mapi".
Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Nov 2024.