The moufiltr example looks promising indeed.
I just always thought it wouldn’t work with a HID mouse,
(touch-screen actually, but that shouldn’t matter
- should it?) but if you say it does I’ll sure give it a try.
Thanks a lot!
Paul Groke
“Doron Holan”
Gesendet von: xxxxx@lists.osr.com
08.06.2004 16:37
Bitte antworten an “Windows System Software Devs Interest List”
An: “Windows System Software Devs Interest List”
Kopie:
Thema: RE: [ntdev] Another HID question
Get the server 2003 DDK. It has an example called firefly. It sits
between mouhid and the PDO for the pointing device. You could set an
IRP_MJ_READ dispatch routine, set a completion routine on the IRP and
change the data when it is being reported.
I think that is too complicated for what you want though. There is
another filter example in the DDK, moufiltr. It sits between mouhid and
mouclass. In that filter, you just insert yourself into the callback
chain (already demonstrated in the src code in the example) and you
modify the MOUSE_INPUT_DATA being reported by mouhid. No need for
setting completion routines. No need for parsing HID data and then
repacking it so that mouhid can reparse it. I would recommend this
route.
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@tab.at
Sent: Tuesday, June 08, 2004 6:26 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Another HID question
Hi!
Can anyone point me directions on how to do a very simple HID filter-
driver that just modifies absolute screen-coordinates from a HID
compatible touch-screen (USB device)?
Is there any available source for a simple HID filter-driver?
The HID documentation in the DDK is very confusing for me 
Regards,
Paul Groke
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@tab.at
To unsubscribe send a blank email to xxxxx@lists.osr.com
Please visit us: www.tab.at www.championsnet.net
www.silverball.com
The upper edge of mouhid is MOUSE_INPUT_DATA, just like any other mouse
port driver. All mouse input, relative or absolute, go through this
interface. BTW, the upper edge of kbdhid is KEYBOARD_INPUT_DATA, just
like any other keyboard port.
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@tab.at
Sent: Tuesday, June 08, 2004 10:15 AM
To: Windows System Software Devs Interest List
Subject: Antwort: RE: [ntdev] Another HID question
The moufiltr example looks promising indeed.
I just always thought it wouldn’t work with a HID mouse,
(touch-screen actually, but that shouldn’t matter
- should it?) but if you say it does I’ll sure give it a try.
Thanks a lot!
Paul Groke
“Doron Holan”
Gesendet von: xxxxx@lists.osr.com
08.06.2004 16:37
Bitte antworten an “Windows System Software Devs Interest List”
An: “Windows System Software Devs Interest List”
Kopie:
Thema: RE: [ntdev] Another HID question
Get the server 2003 DDK. It has an example called firefly. It sits
between mouhid and the PDO for the pointing device. You could set an
IRP_MJ_READ dispatch routine, set a completion routine on the IRP and
change the data when it is being reported.
I think that is too complicated for what you want though. There is
another filter example in the DDK, moufiltr. It sits between mouhid and
mouclass. In that filter, you just insert yourself into the callback
chain (already demonstrated in the src code in the example) and you
modify the MOUSE_INPUT_DATA being reported by mouhid. No need for
setting completion routines. No need for parsing HID data and then
repacking it so that mouhid can reparse it. I would recommend this
route.
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@tab.at
Sent: Tuesday, June 08, 2004 6:26 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Another HID question
Hi!
Can anyone point me directions on how to do a very simple HID filter-
driver that just modifies absolute screen-coordinates from a HID
compatible touch-screen (USB device)?
Is there any available source for a simple HID filter-driver?
The HID documentation in the DDK is very confusing for me 
Regards,
Paul Groke
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@tab.at
To unsubscribe send a blank email to xxxxx@lists.osr.com
Please visit us: www.tab.at www.championsnet.net
www.silverball.com
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com