private bool Init_SDK() { #region Init_SDK int numOfDevice = 0; RSSDKInfo sdkInfo = new RSSDKInfo(); m_result = RS_SDK.RS_InitSDK(null, 0, ref numOfDevice); if (m_result != RS_SDK.RS_SUCCESS) { RS_SDK.RS_GetErrString(m_result, ref m_errorMsg); //MsgPanel.Text = m_errorMsg; MsgPanel.Text = "Error al inicializar SDK"; return(false); } m_result = RS_SDK.RS_GetSDKInfo(ref sdkInfo); DeviceList.Items.Clear(); MsgPanel.Text = "Se inicializo SDK"; for (int i = 0; i < numOfDevice; i++) { String deviceName = "Device "; deviceName += i; DeviceList.Items.Add(deviceName); } if (numOfDevice > 0) { DeviceList.SelectedIndex = 0; } return(true); #endregion }
public static extern int RS_GetSDKInfo(ref RSSDKInfo sdkInfo);