Export (0) Print
Expand All

IWABObject::AllocateMore Method

Allocates a memory buffer that is linked to another buffer previously allocated with the IWABObject::AllocateBuffer method.

Syntax

HRESULT AllocateMore(
    ULONG cbSize,
    LPVOID lpObject,
    LPVOID *lppBuffer
);

Parameters

cbSize
ULONG

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

lpObject
LPVOID

Pointer to the existing buffer object allocated using IWABObject::AllocateBuffer.

lppBuffer
LPVOID

Address of a pointer to the returned buffer. This buffer is linked to lpObject.

Return Value

HRESULT

Returns S_OK if successful.

Remarks

It is only possible to release a buffer allocated with IWABObject::AllocateMore by passing the buffer pointer specified in the lpObject parameter to IWABObject::FreeBuffer. The link between the memory buffers allocated with IWABObject::AllocateBuffer and IWABObject::AllocateMore enables IWABObject::FreeBuffer to release both buffers with a single call.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

Internet Explorer 4.0

Header

Wabapi.h

DLL

Wab32.dll

See Also

IWABObject

 

 

Send comments about this topic to Microsoft

Build date: 6/30/2010

Community Additions

ADD
Show:
© 2014 Microsoft