S2253_getnumdevices, S2253_setstreamwindow, S2253_repaintwindow – Sensoray 2253 Windows User Manual
Page 13

board_index
Zero based index of a 2253 board (or -1 for all boards).
Must be called before application terminates for proper clean-up of the SDK
and SDK objects when SDK opened with S2253_Open.
S2253_GetNumDevices
MID2253_API int __stdcall S2253_GetNumDevices (
int
*NumDevices);
Retrieves the number of devices in the system. Only valid after S2253_Open is
called.
NumDevices
Address of a variable accepting the number of devices.
S2253_SetStreamWindow
MID2253_API int __stdcall S2253_SetStreamWindow (
HWND
hwnd,
int
devid,
int
strmidx);
Optional function to preview in a predefined video window. If this function is
not called or hwnd is NULL, the default pop-up window will display the video
stream. If hwnd is not NULL, the window class should call
S2253_RepaintWindow when a WM_PAINT message is received. An example
MFC window class is shown in the Appendix.
hwnd
Window handle to render to. If NULL, default pop-up window will be used.
devid
device id in the system (use 0 with a single board installed).
strmidx
stream index (0 or 1).
S2253_RepaintWindow
MID2253_API int __stdcall S2253_RepaintWindow (
HDC
hdc,
int
devid,
int
strmidx);
13