public DeviceInterface(IntPtr handle, DeviceInterfaceData did)
 {
     _handle = handle;
     _did = did;
     try
     {
         // On Windows 8 we see exceptions with getting the device info when a bluetooth device is connected.
         _details = new DeviceInterfaceDetail(_handle, _did);
         _isValidUsbDevice = true;
     }
     catch (Exception)
     {
         _isValidUsbDevice = false;
     }
 }
Exemple #2
0
 public DeviceInterface(IntPtr handle, DeviceInterfaceData did)
 {
     _handle = handle;
     _did    = did;
     try
     {
         // On Windows 8 we see exceptions with getting the device info when a bluetooth device is connected.
         _details          = new DeviceInterfaceDetail(_handle, _did);
         _isValidUsbDevice = true;
     }
     catch (Exception)
     {
         _isValidUsbDevice = false;
     }
 }