MAPIFreeBuffer function (mapi.h)

[The use of this function is discouraged. It may be altered or unavailable in subsequent versions of Windows.]

The MAPIFreeBuffer function frees memory allocated by the messaging system.

Syntax

ULONG MAPIFreeBuffer(
  [in] LPVOID pv
);

Parameters

[in] pv

Pointer to memory allocated by the messaging system. This pointer is returned by the MAPIReadMail, MAPIAddress, and MAPIResolveName functions.

Return value

This function returns one of the following values.

Return code Description
MAPI_E_FAILURE
One or more unspecified errors occurred. The memory could not be freed.
SUCCESS_SUCCESS
The call succeeded and the memory was freed.

Requirements

Requirement Value
Target Platform Windows
Header mapi.h (include Mapi.h)

See also

MAPILogoff

Simple MAPI