Allocates a Windows global memory buffer which can be used with the scan methods, and returns a memory handle for it.
Deprecated. Unless your application calls deprecated methods, use WinBufAllocEx().
Most devices return data in a 16-bit format. For these devices, create the buffer using WinBufAlloc(). Some devices return data in higher resolution formats, or the resolution of the data can vary depending on various options used to collect the data. In these cases, determine if the buffer needs to be created using WinBufAlloc32() or WinBufAlloc64(). See hardware-specific information to determine the type of buffer needed. If not specifically mentioned, use WinBufAlloc().
Some devices support acquisition of scaled data. In these cases, create the buffer with ScaledWinBufAlloc(). See hardware-specific information to determine if the device supports scaled data.
Member of the MccService class.
VB .NET
Public Shared Function WinBufAlloc(ByVal numPoints As Integer) As Integer
C# .NET
public static int WinBufAlloc(int numPoints)
numPoints
The size of buffer to allocate. Specifies how many data points (16-bit integers, NOT bytes) can be stored in the buffer.