IWABObject::AllocateBuffer method (wabapi.h)

Allocates memory for buffers that are passed to Windows Address Book (WAB) methods. The buffer must be freed with IWABObject::FreeBuffer, and may be reallocated with IWABObject::AllocateMore.

Syntax

HRESULT AllocateBuffer(
  ULONG  cbSize,
  LPVOID *lppBuffer
);

Parameters

cbSize

Type: ULONG

Value of type ULONG that specifies the size in bytes of the buffer to be allocated.

lppBuffer

Type: LPVOID*

Address of a pointer to the returned buffer.

Return value

Type: HRESULT

Returns S_OK if the requested buffer was successfully allocated.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wabapi.h
DLL Wab32.dll