HI all,
Last Time You suggested me reading pnpi8042,firefly,moufilter sample in Win32 DDK.But I still have no real idea of how to emulate mouse.
As to pnpi8042,Do I have to modify those code,and how?
As to HID mini driver and moufilter,I don’t know how to do next.
By the way, I finished USB read-write data .sys of Touch Screen device driver.I want to emulate mouse in Kernal mode.
Could you please give addtional suggestion?Thanks a lot.
ÑÅ»¢1GÃâ·ÑÓÊÏä°Ù·Ö°Ù·ÀÀ¬»øÐÅ
ÑÅ»¢ÖúÊÖ-ËÑË÷¡¢É±¶¾¡¢·ÀɧÈÅ
If you go the HID minifilter route, you have emulate HID reports and HID
descriptors. There is a hidvmini sample in the latest DDK which shows
how to do this. This begs the question as to why your USB device is not
HID to begin with…your life would be much simpler then. No drivers
to write at all.
If you want to implement a mouse port driver, you must respond to the
following IOCTLS
IOCTL_INTERNAL_MOUSE_CONNECT
IOCTL_MOUSE_QUERY_ATTRIBUTES
See the mouser example, sermcmn.c for the usage. The DDK also covers
these IOCTLs. When you have date, you will report it through the
ConnectData.ClassService callback.
d