MAPIAllocateMore(3w)

MAPIAllocateMore3w

Usage

SCODE MAPIAllocateMore
(
ULONG cbSize,
LPVOID lpOrig,
LPVOID* lppBuffer
)

Overview

MAPIAllocateMore@12 (MAPI32.15).

Allocate a block of memory linked to a previous allocation.

Params

cbSize [In] Size of the block to allocate in bytes.

lpOrig [In] Initial allocation to link to, from MAPIAllocateBuffer(3w).

lppBuffer [Out] Destination for pointer to allocated memory.

Returns

Success: S_OK. *lppBuffer is filled with a pointer to a memory block of length cbSize bytes.

Failure: MAPI_E_INVALID_PARAMETER, if lpOrig or lppBuffer is invalid. MAPI_E_NOT_ENOUGH_MEMORY, if memory allocation fails.

Notes

Memory allocated with this function and stored in *lppBuffer is freed when lpOrig is passed to MAPIFreeBuffer(3w). It should not be freed independently.

Implementation

Declared in "util.h".

Implemented in "dlls/mapi32/util.c".

Debug channel "mapi".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.