Sensoray 609 User Manual
Page 12

12
12
S609_AllocBuffer
ECODE S609_AllocBuffer (
MODE *pMode, //pointer to MODE structure
BUFFER *pBuffer, //pointer to BUFFER structure
DWORD param //meaning depends on the type of buffer
);
Return values
Returns 0 in case of success, or an error code.
Notes
The MODE structure has to be set according to the desired frame grabber mode before a call to
S609_AllocBuffer is made. A variable (structure) of BUFFER type has to be declared. If
S609_AllocBuffer returns successfully, the buffer handle member of the BUFFER structure is set to
the valid buffer handle value. From this moment on this buffer is addressed by its handle.
The param variable is reserved for future extensions, and has to be set to 1.
S609_FreeBuffer
void S609_FreeBuffer (
HBUF hbuf //a buffer handle
);
Return values
None.
Notes
Frees the buffer allocated by S609_AllocBuffer.
S609_CloseSystem
void S609_CloseSystem (
);
Return values
None.
Notes
This function releases all the resources allocated by S609_InitSystem. It has to be called only
once, when the application terminates.