|
From: Stephan M. <ste...@we...> - 2006-11-05 12:24:32
|
This check has been added for the filter driver functionality. It should p=
revent
the filter driver from attaching itself to the child device nodes that Win=
dows
creates for each interface, it should only attach itself to the parent dev=
ice node.
If this check wouldn't be present a device with multiple interfaces would =
show=20
up multiple times in libusb's DLL.
I'll try to change this in future releases.
BTW, is anyone actually using libusb's filter driver functionality for any=
real
project=3F I have plans to remove this feature in the near future because it=
just
doesn't work properly and it won't probably work on Vista anyway.
Stephan
> There has been mention in the past of support for multiple interfaces in=
the releasee notes, and that it should work. However there is a line in l=
ibusb=5Fdriver.c which explicitly prevents multiple interfaces from working:=
>=20
> =20
>=20
> /* only attach the (filter) driver to USB devices, skip hubs */
> /* and interfaces of composite devices */
> if(!strstr(id, "usb\\") || strstr(id, "hub" || strstr(id, "&mi=5F"))
> {
> return STATUS=5FSUCCESS;
> }
>=20
> However, commenting out the test for &mi seems to work fine and I can us=
e libusb on multiple interfaces.
>=20
> =20
>=20
> Is there a reason why multiple interfaces have been disabled in this man=
ner, as I'd like my device to present a standard class interface (e.g. mou=
se) as well as my specialiased one=3F
>=20
> =20
>=20
> --=20
>=20
> Dan Ellis
>=20
> Newnham Research
>=20
> =20
>=20
> -----------------------------------------------------------------
> ------------------------------------------------------------------------=
-
> Using Tomcat but need to do more=3F Need to support web services, security=
=3F
> Get stuff done quickly with pre-integrated technology to make your job e=
asier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geroni=
mo
> http://sel.as-us.falkag.net/sel=3Fcmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642=
>=20
> -----------------------------------------------------------------
> =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
> Libusb-win32-devel mailing list
> Lib...@li...
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
>=20
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
Mit der Gruppen-SMS von WEB.DE FreeMail k=F6nnen Sie eine SMS an alle=20
Freunde gleichzeitig schicken: http://freemail.web.de/features/=3Fmc=3D021179
|