Demo applications, Functions reference – Sensoray 811 Windows SDK User Manual

Page 8

Advertising
background image

S811_GetStatus() – current status (record, playback), current recorded file
size and path;

6. S811_Close() must be called before application terminates to clean up properly.

Demo applications

The SDK includes a demo application provided with the source code to illustrate the use of SDK’s
functions.

code – an MFC application. Displays the stream in the window, allows modification of board parameters
and allows preview and recording to the hard drive.

Functions Reference

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

#define MID811_API extern "C" __declspec(dllimport)

MID811_API int S811_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 mid811types.h for error codes list).

MID811_API int S811_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 mid811types.h for error codes list).

MID811_API int S811_GetNumDevices(

8

Advertising