PORTS Forum

Ports and Interfaces => USB => Topic started by: rdebaene on February 09, 2023, 03:28:41 pm

Title: enumerate VID/PID/WinUSB DeviceInterfaceGUID on Windows - robust code?
Post by: rdebaene on February 09, 2023, 03:28:41 pm
Both the book "USB Complete" and the demo project winusb_cs_31 use VID/PID for detecting device insertion/removal (via WMI) and the DeviceInterface GUID for accessing WinUSB devices.

I couldn't find example code to link VID/PID to DeviceInterface GUID and vice versa, so I tried to write my own code. See attachment (.NET Framework, C#, VS2019).

Kind regards,

Renaat