Sensoray 2224 Windows User Manual
Page 17

MID2226_API int S2226_CloseBoard(HANDLE hdev);
Must be called before application terminates for proper clean-up of the SDK and SDK objects.
Parameters
hdev
handle to device.
Returns
0 on success, negative value if error (see mid2226types.h for error codes list).
MID2226_API int S2226_Enumerate(
int *count,
DEVINFO2226 *devices
);
Enumerates all plugged in 2226s in the system. If *pCount equal to 0, the number of attached
devices is set in *pCount. If *pCount != 0 and pDevices != NULL, then pDevices points to a list of
at least *pCount DEVINFO2226 structures which get filled in with board number and serial number
information. Please see demo application for an example.
Parameters
count
Returns devices found in system (if called with *pCount=0) or size of pDevices to fill with
board information.
devices
array of at least *pCount devices. If querying the number of devices (*pCount = 0),
pDevices may be NULL.
Returns
0 if success, negative if error.
MID2226_API int S2226_SetInput(
MID2226_SOURCE input,
BOOL bUpdateNow
HANDLE hdev
17