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
- Next message: Doron Holan [MS]: "Re: Software only PnP"
- Previous message: Heath: "Re: Using SetupScanFileQueue () to enumerate INF driver files"
- In reply to: MS: "Re: How to determine whether two USB HID device interfaces belong to same or different device?"
- Next in thread: Robert Marquardt: "Re: How to determine whether two USB HID device interfaces belong to same or different device?"
- Messages sorted by: [ date ] [ thread ]
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? >> > >> > >> >> > >
- Next message: Doron Holan [MS]: "Re: Software only PnP"
- Previous message: Heath: "Re: Using SetupScanFileQueue () to enumerate INF driver files"
- In reply to: MS: "Re: How to determine whether two USB HID device interfaces belong to same or different device?"
- Next in thread: Robert Marquardt: "Re: How to determine whether two USB HID device interfaces belong to same or different device?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading