[This is preliminary documentation and subject to change.]
This driver filters input for a particular mouse on the system. In its current state, it only hooks into the mouse packet report chain and the mouse ISR, but does not do any processing of the data that it sees. (The hooking of the ISR is only available in the i8042prt stack.) With additions to this current filter-only code base, the filter could conceivably add, remove, or modify input as needed.
It works on both x86 and Alpha platforms, and is 64-bit compliant.
This sample is installed via an .inf file. The .inf file included in this sample is designed to filter a PS/2 mouse.
Use the following rules regarding the .inf file that installs the filter driver.
The .inf (moufiltr.inf) included in this example was generated by Geninf.exe, a tool located in the Tools directory. An .inf file generated by Geninf.exe will contain the necessary directives to install a new mouse filter driver. Use Geninf.exe to create the .inf file for your driver.
The catalog file referred to in moufiltr.inf, Kbfiltr.cat, is included in this example, but it is invalid. WHQL will provide a valid catalog file upon approval of the driver.
To install this filter, follow these steps:
Once built, the sample produces one binary: Moufiltr.sys.
The code builds properly with Microsoft® Visual C® 6.0 and the driver supports Plug and Play and Power Management. Both checked and free builds are available. There are no known bugs or issues to be documented.
File DescriptionMoufiltr.htm The documentation for this sample (this file). Moufiltr.c Hooks into the reporting chain, the initialization of a PS/2 mouse, and the PS/2 ISR Moufiltr.h Definitions Moufiltr.rc Resources Moufiltr.inf Sample .inf file (use geninf.exe to create your own) Moufiltr.cat Sample (invalid) catalog (WHQL will provide a valid catalog file upon approval)
© Microsoft Corporation 1999