Sometimes the user need to get the complete usb information (PID/VID etc) within software under Windows system just like the lsusb command under linux system.
In fact, Windows also have provided some function interface to get the device information as illustrated in the Device Manager.
The SetupDiGetClassDevs function returns a handle to a device information set that contains requested device information elements for a local computer.
Please reference the link as below for the detailed Syntax/Parameters/Return Value/Remarks information of this interface.
And please also reference the attached example code, it listed all of the usb devices in the PC, and also extracted the PID/VID/Interface information for further implementation.
Run USBInfo.exe directly with CP2108 plug-in for checking, the detailed information of CP2108 interface as below,