I have this code in my C# program:
UsbRegistry reg = null;
if (productId == 0)
reg = UsbDevice.AllDevices.FirstOrDefault(d => d.Vid.Equals(vendorId));
else
reg = UsbDevice.AllDevices.FirstOrDefault(d => d.Vid.Equals(vendorId)
&& d.Pid.Equals(productId));
if (reg != null)
reg.Open(out _device);
UsbDevice.AllDevices
property only list a USB fingerprint device, even when I have a USB printer also connected to a USB connector.
Printer is firmly connected and turned on, and in fact, if I print using Winspool driver, it works.
I need to bypass Winspool driver but printing directly sending bytes to USB port where the printer is attached.
What may be happening here?
This has been cross-posted to this Github issue