Re: How to determine whether two USB HID device interfaces belong to same or different device?

From: Doron Holan [MS] (doronh_at_nospam.microsoft.com)
Date: 09/06/04


Date: Mon, 6 Sep 2004 08:22:31 -0700

call SetupDiGetDeviceInterfaceDetail and pass in the optional
PSP_DEVINFO_DATA . SP_DEVINFO_DATA::DevInst is the field you want

d

-- 
Please do not send e-mail directly to this alias. this alias is for 
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"MS" <shyang1234@hotmail.com> wrote in message 
news:esiJ78$kEHA.3432@TK2MSFTNGP14.phx.gbl...
> How to get the DevInst for the interface? Could you tell me that? Thanks.
>
> "Doron Holan [MS]" <doronh@nospam.microsoft.com> ¦b¶l¥ó
> news:OyQcr9JkEHA.2340@TK2MSFTNGP11.phx.gbl ¤¤¼¶¼g...
>> when using SetupDi to enumerate the interfaces, you can also acquire the
>> DevInst for the interface.  once you have the DevInst, you can use the
>> CM_Xxx APIs to walk the device tree.  in our case, you would use the
> DevInst
>> and call (I think) CM_Get_Parent to get the parent DevInst.  you then
>> compare the parent DevInsts among the interfaces and you can group this
> way.
>>
>> d
>>
>>
>> -- 
>> Please do not send e-mail directly to this alias. this alias is for
>> newsgroup purposes only.
>> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>>
>>
>> "MS" <shyang1234@hotmail.com> wrote in message
>> news:OTekgiBkEHA.548@TK2MSFTNGP11.phx.gbl...
>> > Hi, all,
>> >    I attach two same USB HID devices into PC. The HID device has two
>> > reports which means two device interface in Windows. By using SetupDi
> APIs
>> > with HID GUID and HidP_GetCaps with the check of my VID and PID, I 
>> > could
>> > find 4 device interfaces of my two HID devices. The problem is that I
>> > could
>> > not determine which two device interfaces belong to the same device. Is
>> > there any method to determine that?
>> >
>> >
>>
>>
>
> 


Relevant Pages

  • Re: User input to native application
    ... I know you can enumerate the interfaces in KM at this time though, ... Please do not send e-mail directly to this alias. ... so rather than "Strike any key to abort" unless you really are ...
    (microsoft.public.win32.programmer.kernel)
  • Re: SetupDiGetDeviceRegistryProperty - Usb - Address - Busnumber
    ... CDC device and see if it returns the same DEVINST ... Please do not send e-mail directly to this alias. ... device on the same composite device. ... I want to find out which interfaces belong together ...
    (microsoft.public.development.device.drivers)
  • Etherchannel bonding, RedHat on Sun40z
    ... I am attempting etherchannel bonding ... appears in ifconfig, but cannot connect to network, other interfaces ... appear in ifconfig, ... alias eth2 bcm5700 ...
    (SunManagers)
  • Re: ASP Fax
    ... you are using Win2k then you can use the legacy COM interfaces. ... Please do not send email directly to this alias. ... >> ASP without any third party controls. ... >> From: shankar narayanan ...
    (microsoft.public.win2000.fax)
  • Re: How to determine whether two USB HID device interfaces belong to same or different device?
    ... DevInst for the interface. ... compare the parent DevInsts among the interfaces and you can group this way. ... By using SetupDi APIs> with HID GUID and HidP_GetCaps with the check of my VID and PID, I could> find 4 device interfaces of my two HID devices. ...
    (microsoft.public.development.device.drivers)

Loading