# WinBufFreeEx()

Frees a Windows global memory buffer which was previously allocated with WinBufAllocEx(), WinBufAlloc32Ex(), or WinBufAlloc64Ex().

Deprecated; unless your application calls deprecated methods, use WinBufFreeEx().

Member of the MccService class.

## Function Prototype

VB .NET

Public Function WinBufFreeEx(ByVal memHandle As IntPtr) As MccDaq.ErrorInfo

C# .NET

public MccDaq.ErrorInfo WinBufFreeEx(IntPtr memHandle)

## Parameters

memHandle

A Windows memory handle. This must be a memory handle that was returned by WinBufAllocEx(), WinBufAlloc32Ex(), or WinBufAlloc64Ex() when the buffer was allocated.

## Returns

- An ErrorInfo object that indicates the status of the operation.

## Notes

- This method is preferred over the deprecated method WinBufFree(). Only use ScaledWinBufAlloc() in 32-bit legacy applications that call deprecated methods.