Hi experts,
I try to write mouse driver and usb device driver.The mouse driver has no PID
&VID.It receives IOCTLs from usb device driver and communicate with mouclass.
My Question is
1)How to install the mouse driver without PID & VID?
2)How to send IOCTLs from usb device driver to mouse driver?
¸Ï¿ì×¢²áÑÅ»¢³¬´óÈÝÁ¿Ãâ·ÑÓÊÏä?
http://cn.mail.yahoo.com
- I think you are asking how to install a root enumerated device, e.g.
a device which is not detected by any hardware bus (or bus driver) on
the machine. Devcon can do this for you. For instance, to install the
KMDF sample driver statbus
devcon install statbus.inf root\statbus
- you have the same problem as before. For the usb driver to send
info to the mouse driver, it needs to open the mouse driver. But you
can’t open the mouse driver because mouclass will prevent it. You
should get the one driver solution working w/out complicating things by
introducing 2 device stacks.
d
I don’t recall the context of this, but surely if you wanted to it this
way you could just create a control device and send the IOCTLs there.
On the other hand, it seems a lot easier to just make the USB driver a
HID mini-driver and let the OS take care of the piping.
Doron Holan wrote:
- you have the same problem as before. For the usb driver to send
info to the mouse driver, it needs to open the mouse driver. But you
can’t open the mouse driver because mouclass will prevent it. You
should get the one driver solution working w/out complicating things by
introducing 2 device stacks.
d
–
Ray