private int USBCheckLibrary() { try { var _usb = new HidSharp.Reports.Report(); // todo remove return(0); } catch (FileNotFoundException) { return(-1); } catch (TypeLoadException) { return(-1); } catch (Exception) { return(-2); } }