Post by 4***@email.comWhat could happen when using this driver? Bad things?
Yes. For example it blows away the users existing mouse driver and
replaces it with a de-featured driver dating back 20 years. This will
in turn de-feature many of the newer types of mice. There is a very
long list of issues with this sample, don't use it.
Until now (x86 version) I never had any problems with it, on many
machines. But of course I am willing to change it to something better.
Post by 4***@email.comAre you using IOCTL_INTERNAL_MOUSE_CONNECT and/or
IOCTL_INTERNAL_I8042_HOOK_MOUSE?
Yes, both, but some comment in the example says I can remove the latter
because I only want to filter MOUSE_INPUT_DATA. I didn't remove it.
Post by 4***@email.comIf yes, then this architecture won't work for USB at all (another
reason not to use this sample).
But in x86 it works well, since years! I have two INF files, one for PS2
and one for USB and they both use the same SYS file.
Post by 4***@email.comChange your architecture to strictly
filter IRPs and delete everything related to such ioctls. You want an
upper class filter. Use the inf suggested and filter the IRP traffic.
It will work consistently with ps2 and USB.
The problem is that I only got it to work because of the MS example
where I only had to change few things - mainly this callback:
MouFilter_ServiceCallback(
IN PDEVICE_OBJECT DeviceObject,
IN PMOUSE_INPUT_DATA InputDataStart,
IN PMOUSE_INPUT_DATA InputDataEnd,
IN OUT PULONG InputDataConsumed
)
Is there anywhere some similar example to filter IRPs the same way?
Post by 4***@email.comIt can work in several ways. A class filter can choose which devices
it wishes to filter and which it does not. It is also be possible to
install it for a specific device rather than as a class. It can also
be installed and/or uninstalled using setup api, dpinst, etc.
Is it possible to let the user install it for only one device just by
right-clicking this one in the devicemanager? Or how can he choose which
one he wants? I hoped not to need some complicated installer.
Thanks for your help,
--
Moritz Franckenstein
mailto:maf-***@gmx.net
http://www.maf-soft.de/
icq: 22030984 y!: maf_soft