6.3 WFMFreeBuffer

HRESULT WFMFreeBuffer( lpvData )

Releases the memory buffer(s) allocated by WFMAllocateBuffer and WFMAllocateMore.

Parameters LPVOID lpvData

Address of the memory buffer to free.

Comments See WFMAllocateBuffer and WFSFreeResult. This function frees a set of one or more linked buffers, as does the WFSFreeResult API function, except that it is used by service providers to free memory that they have allocated for "private" use, via the WFMAllocateBuffer and WFMAllocateMore functions.

Error Codes If the function return is not WFS_SUCCESS, it is one of the following error conditions:

WFS_ERR_INVALID_BUFFER
The lpvData parameter is not a pointer to an allocated buffer structure.
WFS_ERR_INVALID_POINTER
A pointer parameter does not point to accessible memory.

See also WFMAllocateBuffer, WFMAllocateMore, WFSFreeResult and Section 3.13.