USB View
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: USB View

  1. #1
    Join Date
    Jan 2014
    Posts
    8

    Post USB View

    Is it possible to see what usb devices are connected to a hub?

    an example would be:

    Onboard usb hub:
    usb mass storage device
    webcam imaging device

    superspeed hub:
    Mass storage device
    Printer
    MTD device

    I am currently able to get a list of all connected devices with ManagementobjectCollection in C# but that doesn't give me any hierarchy (as far as I am aware).

    I am not dead set on C#, I assumed that would be fastest way to get this up and running.

    Thanks

  2. #2
    Arjay's Avatar
    Arjay is online now Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,197

    Re: USB View

    For each top level item, you'll need to pass its id and call wmi again to get the children.

  3. #3
    Join Date
    Jan 2014
    Posts
    8

    Re: USB View

    Could you possibly elaborate?

    Thanks
    Oli

  4. #4
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,951

    Re: USB View

    You might want to look at Powershell
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center