# cbWinBufFree()

Frees a Windows global memory buffer which was previously allocated with cbWinBufAlloc(), cbWinBufAlloc32(), or cbWinBufAlloc64().

## Function Prototype

C/C++

int cbWinBufFree(int MemHandle)

Visual Basic

Function cbWinBufFree(ByVal MemHandle&) As Long

## Arguments

MemHandle

A Windows memory handle. This must be a memory handle that was returned by cbWinBufAlloc(), cbWinBufAlloc32(), or cbWinBufAlloc64() when the buffer was allocated.

## Returns

- Error code or zero if no errors.