/// <summary> /// Gets info about the connected device /// </summary> /// <param name="pSI">SYSTEM_INFO structure populated by the call</param> public void GetDeviceSystemInfo(out SYSTEM_INFO pSI) { CheckConnection(); try { CeGetSystemInfo(out pSI); } catch(Exception) { throw new RAPIException("Error retrieving system info."); } }
internal static extern int CeGetSystemInfo(out SYSTEM_INFO pSI);
/// <summary> /// Gets info about the connected device /// </summary> /// <param name="pSI">SYSTEM_INFO structure populated by the call</param> public bool GetDeviceSystemInfo(out SYSTEM_INFO pSI) { CheckConnection(); try { CeGetSystemInfo(out pSI); return true; } catch(Exception) { pSI = new SYSTEM_INFO(); return false; } }