I am attempting to retrieve the “Friendly name” for a USB device. The code sample I found uses SetupDiGetDeviceProperty, and works wonderfully on Windows Vista and later. Unfortunately I also have to support Windows XP. Is there an alternate API call, available in XP, that would allow me to retrieve the same information?
Share
you can use the
Win32_PnPEntityWMI class to get most of the information returned by theSetupDiGetDevicePropertyfunction.Try this C++ sample