public USB() { WinUsbDevice.OpenUsbDevice(ref guid, out MyUsbDevice); async_read_t = new Thread(async_read); if (MyUsbDevice.Info.ManufacturerString != "Nerox") { throw new Exception("Device Not Found."); } if (MyUsbDevice.Info.ProductString != "Nerox USB Controller") { throw new Exception("Device Not Found."); } // If the device is open and ready if (MyUsbDevice == null) { throw new Exception("Device Not Found."); } async_read_t.Start(); }