On Fri, Aug 16, 2013 at 2:24 AM, Tim Roberts <t...@probo.com> wrote: > Xiaofan Chen wrote: >> Secondly how does usbccgp.sys rewrites the configuration >> descriptors? > > It eliminates everything related to the interfaces that you did not > claim in your INF. If you claimed MI_03, and you have an IAD for > interfaces 3, 4, and 5, then it will remove everything that mentions > interfaces 0, 1, and 2.
I see. >> What do you mean by "You don't need the IAD"? Do you mean >> you do not need to parse the IAD descriptors? > > Right. The IAD is a simple descriptor. It only provides two things: > the class/subclass/protocol for the interface group, and the interface > numbers that are part of the group. You don't need the interface > numbers, because the rewritten configuration descriptor only includes > those interfaces. You don't need the class/subclass/protocol, because > if you have a class-generic driver, usbccgp.sys will have created a > generic PDO for the class/subclass. If you have a device-specific > driver, then you know what the class and subclass are. > > >> Assuming WinUSB is used for the IAD that groups Interfac 3/4/5, >> then you mean libusbx can then enumerate the interface 3/4/5 >> now that WinUSB driver is in charge of all three interfaces. Right? > > Yes. Once you see there are several interfaces in the configuration > descriptor, you can call WinUsb_GetAssociatedInterface to get at the > other interfaces. So it seems to me the fix is not to parse IAD descriptor, but rather somewhere else. Thanks a lot for the explanations. And hopefully now Pete or others can come out a proper fix with all the information. -- Xiaofan ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel