beautypg.com

Sdk function reference – Sensoray 812 Windows User Manual

Page 7

background image

the 812 board. The Demo application is written in C# Windows Forms .NET and provides a wrapper to
the “C” DLL in the file s812.cs.

SDK Function Reference

All API functions are declared using the following definition and the __stdcall calling
convention
:

#define MID812_API extern "C" __declspec(dllimport)

MID812_API HANDLE S812_OpenBoard(int devid);

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

Parameters

devid

device id in the system (use 0 with a single board installed).

Returns

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

MID812_API int S812_CloseBoard(int devid);

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

Parameters

devid

device id in the system (use 0 with a single board installed).

Returns

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

MID812_API int S812_GetNumDevices(int *num_devices);

Enumerates all plugged in 812s in the system.

Parameters

num_devices

Returns devices found in system.

Returns

0 if success, negative if error.

7