Working with Composite Devices on Windows 10
See original GitHub issueWhen I attempt to use Device.Net (2.7) with my iPhone use an instance of FilterDeviceDefinition, the library doesn’t find it. When looking for it via Device Manager (Windows 10), the device is shown under a composite usb manifest.
When I look for it via code using the Management object searcher, it finds the device without issue.
ManagementObjectCollection collection; using (var searcher = new ManagementObjectSearcher ($"Select * From Win32_PnPEntity WHERE DeviceID Like '%{deviceId}&MI_%'")) collection = searcher.Get();
when I use device.net to accomplish the same thing, using the code below, GetDevices() doesn’t return the iPhone:
`var deviceDefinitions = new List<FilterDeviceDefinition> { new FilterDeviceDefinition{ DeviceType= DeviceType.Usb, VendorId= 0x05AC, ProductId=0x12A8, Label=“Apple iPhone” }, };
var devices = await DeviceManager.Current.GetDevices(deviceDefinitions);`
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (7 by maintainers)

Top Related StackOverflow Question
I don’t know if this is relevant here or not but I thought I would mention it incase it’s helpful but I have some external scanning sleds that I use with ipods and before any of my apps can make use of the sled I had to add this to the info plist.
@davidehnis I’m guessing so. I will see if I can get my hands on an iPhone.