none
how to scan for connected usb devices?

    Question

  • Hi All,

    I like to know how to get the connected usb devices and getting each device vendor_id and product_id.

    thanks for answering.



    • Edited by Yuri.B Monday, November 11, 2013 9:37 PM
    Monday, November 11, 2013 6:51 PM

Answers

All replies

  • Search for the DevCon utility – it has source code also.
     
    -- David
     
    • Marked as answer by Yuri.B Tuesday, November 12, 2013 8:44 PM
    Tuesday, November 12, 2013 12:34 AM
  • Try to use SetupAPI.h.

    Go through the sample project:

    https://github.com/vinzenzweber/USBEventHandler/wiki

    • Edited by Muhamed Shaheer Tuesday, November 12, 2013 8:39 AM
    • Marked as answer by Yuri.B Tuesday, November 12, 2013 8:44 PM
    Tuesday, November 12, 2013 8:29 AM
  • thank you for the answers,

    but, I like to know if its possible to detect usb devices whose drivers are not yet installed?

    thanks.

    Tuesday, November 12, 2013 12:33 PM
  • Many USB devices don’t have their own drivers – they come with Windows and are already present.  You asked how to get the connected devices.  These methods tell you that.
     
    -- David
     
    • Marked as answer by Yuri.B Tuesday, November 12, 2013 8:43 PM
    Tuesday, November 12, 2013 1:22 PM