How to list all attached USB devices in Visual C++

后端 未结 1 437
长发绾君心
长发绾君心 2021-01-03 08:47

In Short: I need to detect hotplug events of my USB CDC device by PID/VID and get the corresponding virtual COM port which was created by Windows in Visual

1条回答
  •  别那么骄傲
    2021-01-03 09:33

    After digging through tons of useless documentation at msdn and some debugging I found the missing link: SetupDi calls in setupapi.h: More infos as well as source code for Mac and Windows can be found in my USBEventHandler project at github.com with sources for Mac and Windows.

    0 讨论(0)
提交回复
热议问题