My filter driver is based on the NTDDK\src\input\kbfiltr sample. In the
readme file of this sample, it provides the following steps to install the
filter:
Open the Device Manager.
Open the Properties of the PS/2 keyboard installed on the system.
Click the Driver tab, and then click Update Driver.
Follow the wizard's prompts, and when prompted, select the Display a
list of the known drivers option, and then click Next.
Click Have Disk and point to the location of the .inf file.
Proceed through the rest of the install. You will need to reboot the
machine if you are filtering a PS/2 device.
If I use the above steps, I can successfully install my filter driver. In
the Device Manager window,
if you expand the Keyboards node, you will only see "keyboard filter
driver". The driver files include i8042prt.sys, kbdclass.sys and
kbfilter.sys. The filter works fine.
But I want to install the filter driver programmatically without use
intervention.
So I try to use the NTDDK\src\general\setup\install sample to install the
filter driver. I run something like "install c:\mydriver\kbfilter.inf
*PNP0BAAD" and reboot the system. If I go to Device Manager window and
expand the Keyboards node again, I see "keyboard filter driver" AND "PC/AT
Enhanced PS/2 Keyboard(101/102 Key). There is also error icon in front of
the filter driver and my filter driver seems not work.
So my question is what is the difference between Hardware Wizard and using
the SetupDi function like install sample? Doesn't the install sample not
work on filter drivers?
Thanks
"Doron Holan [MS]" <dor...@online.microsoft.com> wrote in message
news:O3v7YMBQCHA.2152@tkmsftngp12...
> why are you replacing the keyboard driver instead of installing your
driver
> as a filter? if you are remove i8042prt (which is what i assume you are
> removing) for the keyboard, there is no coordination between the mouse and
> keyboard ports on the controller. or am i misunderstanding what you are
> doing?
>
> d
>
> --
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> "Weiyang Zhou" <w...@vpinc.biz> wrote in message
> news:#5TwqY8PCHA.612@tkmsftngp08...
> > I tried to use install.exe to install my filter driver . But at the end
of
> > installation, it doesn't prompt me to reboot. When I check the device
> > manager, under keyboards, I have two drivers, my filter driver and the
> > windows keyboard driver. There is an error icon in front of my driver.
> Also
> > I see a message "This driver can not be started". Even after I reboot
the
> > system, it still remains the same.
> >
> > When I use the same INF file through Hardware Wizard, Update driver to
> > install the filter driver, it actually replaces the window keyboard
driver
> > so that after rebooting, the only driver under Keyboards is my filter
> > driver. That way, the filter driver works properly.
> >
> > Any ideas?
> >
> >
> > "Dmitry" <mi...@svitonline.com> wrote in message
> > news:026c01c23f95$68fc7e10$35ef2ecf@TKMSFTNGXA11...
> > > See the DDK samlpe setup\install.c
> >
> >
>
>
Then use install sample. This will find the matching devnode using this
hardware ID
and update the registry with filter driver information.
You may also use devcon sample from XP DDK.
-Kumar
--
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "Weiyang Zhou" <w...@vpinc.biz>
Subject: Re: install keyboard filter driver
Date: Mon, 12 Aug 2002 08:46:30 -0600
Thanks
Weiyang
""Kumar Rajeev [MS]"" <ku...@online.microsoft.com> wrote in message
news:HOhiGNzQCHA.1348@cpmsftngxa06...
Thanks
Weiyang
"Weiyang Zhou" <w...@vpinc.biz> wrote in message
news:uFgmXp6QCHA.4268@tkmsftngp08...
By the way, is the Hardware ID in INF case-sensitive?
Thanks
Weiyang
""Kumar Rajeev [MS]"" <ku...@online.microsoft.com> wrote in message
news:HOhiGNzQCHA.1348@cpmsftngxa06...
>