Skip to content

Latest commit

 

History

History
65 lines (42 loc) · 1.69 KB

mapiallocatebuffer.md

File metadata and controls

65 lines (42 loc) · 1.69 KB
title description manager ms.date ms.audience ms.topic ms.service ms.localizationpriority api_name api_type ms.assetid
MAPIAllocateBuffer
Describes the MAPIAllocateBuffer function and provides, syntax, parameters, return value, and additional remarks.
lindalu
03/09/2015
Developer
reference
office-online-server
medium
MAPIAllocateBuffer
HeaderDef
f1fc7fc5-c71f-44f7-930a-571773eb6809

MAPIAllocateBuffer

Applies to: Outlook 2013 | Outlook 2016

Allocates a memory buffer.

Property Value
Header file:
Mapix.h
Implemented by:
MAPI
Called by:
Client applications and service providers
SCODE MAPIAllocateBuffer(
  ULONG cbSize,
  LPVOID FAR * lppBuffer
);

Parameters

cbSize

[in] Size, in bytes, of the buffer to be allocated.

lppBuffer

[out] Pointer to the returned allocated buffer.

Return value

S_OK

The call succeeded and has returned the requested memory buffer.

Remarks

During MAPIAllocateBuffer call processing, the calling implementation acquires a block of memory from the operating system. The memory buffer is allocated on an even-numbered byte address. On platforms where long integer access is more efficient, the operating system allocates the buffer on an address whose size in bytes is a multiple of four.

Calling the MAPIFreeBuffer function releases the memory buffer allocated by MAPIAllocateBuffer, by calling the MAPIAllocateMore function and any buffers linked to it, when the memory is no longer needed.

See also

MAPIReallocateBuffer