How to get only USB devices not all the devices in the system

Posted by new on Stack Overflow See other posts from Stack Overflow or by new
Published on 2010-06-05T12:50:15Z Indexed on 2010/06/05 12:52 UTC
Read the original article Hit count: 220

Filed under:
|
|
|

Grretings to all,

I get devices list from the system.

but i am not sure that if i want to get only the usb devices currently in the system means ,

What class i must specify in the below code ( DWORD Flags )

hDevInfo = SetupDiGetClassDevs(&GUID_DEVINTERFACE_USB_DEVICE,
                           0, // Enumerator
                           0,
                           DIGCF_PRESENT | DIGCF_INTERFACEDEVICE );

© Stack Overflow or respective owner

Related posts about c++

Related posts about Windows