Sensoray 2251 Rev.A User Manual

Page 26

Advertising
background image

);

Removed with V.1.03. Please use SN_SetBoardWindow.

MID2250_API int SN_SetRemoveMsg(

HWND hwnd,

int removeMsg,

int board

);

Sets the value of the message that is sent to the application’s window in case of device removal
(e.g. USB cable unplugged).

Parameters

hwnd

handle of the window that will receive the message.

removeMsg

message value to be sent.

board

board number in the system (use 0 for single board setups).

Returns

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

MID2250_API int SN_TestDeviceRemoval(

int board

);

Tests whether device was removed or not. When SN_SetRemoveMessage is called, a message
window handle and remove message is set. When remove message is received by the application,
this function is called to confirm the device was removed and if it was, the DLL should be shut
down.

Parameters

board

board number in the system (use 0 for single board setups).

Returns

0 in case the device was not removed, 1 in case it was.

26

Advertising
This manual is related to the following products: