none
Enumerate all USB devices. RRS feed

  • Question

  • I would like to enumerate all USB devices on a computer.  For now I will have two devices.  One device will be a label printer and the other will be an I/O device.  Once enumerated, I would like to use CreateFile() to open a communications path with the device.  Much like a comm port.  Are there any examples of this anywhere?  What functions would I use?  I am using VC++ 2008 standard version on a Windows XP machine.

     

    Thanks,

    HyperEngineer

     

    Monday, May 5, 2008 4:09 PM

Answers

  •  

    Get the DEVCON DDK sample.  It is a command-line utility that provides the same functionality as the Device Manager.  Source code is included.  :-)

     

    -- David

     

    Tuesday, May 6, 2008 12:29 AM