beautypg.com

Sensoray 2251 Rev.A User Manual

Page 8

background image

#define MID2250_API extern "C" __declspec(dllimport)

MID2250_API int SN_Open( void );

Must be called before any other API functions are called to open the SDK.

Parameters

None.

Returns

0 on success, negative value if error (see mid2250types.h for error codes list).

MID2250_API int SN_Close(

);

Must be called before application terminates for proper clean-up of the SDK and SDK objects.

Parameters

None.

Returns

0 on success, negative value if error (see mid2250types.h for error codes list).

MID2250_API int SN_SetBoardWindow(

HWND hwnd,

BOOL bResize,

int board

);

Sets the window for display or rendering the video stream. If called, will automatically set

SN_SetRenderVideo(TRUE).

hwnd

A handle to the window to display video in.

bResize

If set to TRUE, the window will be resized to match native video size.

board

8

This manual is related to the following products: