usb device and hub detection

Discussion in 'Windows Vista Drivers' started by John, Jan 18, 2005.

  1. John

    John Guest

    I have a USB device which actually consists of a hub and two other devices so
    that only a single USB port is needed. The problem is that a user can plug
    in multiple of these devices. How can I distinguish that device 1A and 1B
    are connected to hub 1 while device 2A and 2B are connected to hub 2?

    In this scenario, I have a single driver which talks to an individual device
    but a service which needs to distinguish which devices should be paired.


    John, Jan 18, 2005
    1. Advertisements

  2. John

    ZG Guest

    Have a look at Device Instance Id and SetupDiOpenDeviceInfo.


    ZG [@ Sydney]
    Windows Driver Developer/Service
    [Remove 'stopspam' & 'nospam' when you send email to me]
    ZG, Jan 19, 2005
    1. Advertisements

  3. John

    John Guest

    I'm not sure I'm following. I don't see how I can get a reference to the
    parent device from this function.

    John, Jan 19, 2005
  4. John

    Marc Reinig Guest

    Search for the article, "Obtaining the Parent of a Device in the Device
    Tree", in the DDK help. Hint: it's in the "Device Installation / Design
    Guide / Using SetupAPI Functions" section.

    Marc Reinig
    UCO/Lick Observatory
    Laboratory for Adaptive Optics

    Marc Reinig, Jan 19, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.