\\.\HCD0, IOCTL_USB_GET_ROOT_HUB_NAME not working for EHCI control

Discussion in 'Windows Vista Drivers' started by winddklearner, Jan 6, 2006.

  1. Hi,
    I'm using \\.\HCDn for getting the file descriptor of USB EHCI Root hub. I
    call CreateFile on this and get the handle. This handle I pass to
    DeviceIOControl with the IOCTL code set to IOCTL_GET_HCD_DRIVERKEY_NAME and
    IOCTL_USB_GET_ROOT_HUB_NAME. This gives me EHCI Root Hub's descriptor as
    USB#ROOT_HUB#4&14329df0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8} for UHCI
    Controllers.
    However, on Windows 2000, the CreateFile on \\.\HCDn path fails with error
    number 2 (== The system cannot find the file specified.).
    I'm compiling my program in VS6.0 with Win DDK 2003.
    This same code works fine on UCHI, OHCI USB Controllers on Win2k. Also, it
    works for EHCI Controller on Win2k3 and WinXP.
    Then, why it is not working only on Windows 2000?
    I have taken this code from usbiew utility source code present in NTDDK 2000.
    Please guide. Thanks in advance.
     
    winddklearner, Jan 6, 2006
    #1
    1. Advertising

  2. On Win2K there are two parallel USB driver stacks; the old Win2K stack is
    loaded for USB 1.1 controllers, and the new XP stack is loaded for EHCI
    controllers. Both stacks create symbolic links of the form HCD0, HCD1,
    etc. As the old Win2K stack will be first create a symbolic link for
    "HCD0", the XP stack will fail to create a symbolic link because it tries
    to use the same link name.

    The latest version of USBVIEW (Windows Server 2003 DDK) works around this
    by using a GUID-based method of enumerating host controllers that supported
    by the XP stack, in addition to using the symbolic link method. It then
    insures it has no duplicates between the two methods.

    Martin Borve
    Windows DDK Support
    This posting is provided "AS IS" with no warranties, and confers no rights.
     
    Martin Borve [MSFT], Jan 6, 2006
    #2
    1. Advertising

  3. RE: \\.\HCD0, IOCTL_USB_GET_ROOT_HUB_NAME not working for EHCI con

    Hi,
    I compiled my code using Win DDK 2003 and ran it on Win 2k. Still it failed.
    Do I need to use different version of DDK - other than DDK 2000 or DDK 2003?

    >>MSFT>> The latest version of USBVIEW (Windows Server 2003 DDK) works around this ...

    Where can I find this latest version of USBView, which has this work around?
    I would like to implement that work around in my source code.
    Thanks.
     
    winddklearner, Jan 9, 2006
    #3
  4. RE: \\.\HCD0, IOCTL_USB_GET_ROOT_HUB_NAME not working for EHCI con

    Dear Sir,
    I checked in USBView.exe compiled in Win DDK 2003 (build 3790), but it also
    has the same problem. Also, its version is same as that of Win DDK 2000.

    Which version USBView in DDK carries this work around? Please guide.
    Thanks.
     
    winddklearner, Jan 10, 2006
    #4
  5. RE: \\.\HCD0, IOCTL_USB_GET_ROOT_HUB_NAME not working for EHCI con

    You need the Windows Server 2003 SP1 DDK. Earlier DDKs don't have the fix.

    Martin Borve
    Windows DDK Support
    This posting is provided "AS IS" with no warranties, and confers no rights.
     
    Martin Borve [MSFT], Jan 11, 2006
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Yariv

    Microsoft EHCI driver & Multiple URBs

    Yariv, Jan 6, 2004, in forum: Windows Vista Drivers
    Replies:
    2
    Views:
    338
    Yariv
    Jan 8, 2004
  2. M Taha Masood

    comparison of Microsoft and Orange's EHCI drivers

    M Taha Masood, Aug 25, 2004, in forum: Windows Vista Drivers
    Replies:
    5
    Views:
    258
    M Taha Masood
    Nov 1, 2004
  3. Gopa

    Windows XP EHCI Driver

    Gopa, Jan 17, 2005, in forum: Windows Vista Drivers
    Replies:
    2
    Views:
    876
    michelle
    Jan 18, 2005
  4. eric

    Need to access Specific EHCI operational registers

    eric, Sep 29, 2006, in forum: Windows Vista Drivers
    Replies:
    3
    Views:
    413
    Doron Holan [MS]
    Oct 3, 2006
  5. Thomas Schimming

    MaximumTransferSize limit for bulk on EHCI in Vista RC2 (5744)?

    Thomas Schimming, Oct 12, 2006, in forum: Windows Vista Drivers
    Replies:
    15
    Views:
    551
    Maxim S. Shatskih
    Oct 18, 2006
Loading...

Share This Page