public HidDevice(string deviceID, IHidDeviceManager deviceManager) { manager = deviceManager; devicePath = new DevicePathBuilder(manager.GetHidGuid()).Build(deviceID); deviceInstancePath = deviceID; var devid = deviceID.ToLowerInvariant(); ProductId = ParseHexId(devid, devid.IndexOf("pid")); VendorId = ParseHexId(devid, devid.IndexOf("vid")); Version = ParseHexId(devid, devid.IndexOf("rev")); }
public CoolitHidDevice(CoolitDeviceEntity coolitDeviceEntity, IHidDeviceManager deviceManager) : base(coolitDeviceEntity.DeviceID, deviceManager) { }