Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

MAPIAllocateBuffer

Windows Mobile 6.5
4/8/2010

The MAPIAllocateBuffer function allocates a memory buffer.


SCODE MAPIAllocateBuffer(
  ULONG cbSize, 
  LPVOID FAR* lppBuffer 
);

cbSize

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

lppBuffer

[out] Pointer to the returned allocated buffer.

S_OK

The call succeeded and has returned the expected value or values.

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 and also releases any additional buffers that have been linked to it through the MAPIAllocateMore function.

Headermapix.h
Librarycemapi.lib
Windows Embedded CEWindows CE 3.0 and later
Windows MobilePocket PC 2002 and later, Smartphone 2002 and later

Reference

MAPI Functions

Other Resources

Messaging

Community Additions

Show:
© 2015 Microsoft