Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

install keyboard filter driver

1,105 views
Skip to first unread message

Weiyang Zhou

unread,
Aug 12, 2002, 10:46:30 AM8/12/02
to
I am not replacing the keyboard driver.

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
> >
> >
>
>


Kumar Rajeev [MS]

unread,
Aug 13, 2002, 9:39:13 PM8/13/02
to

Did you modify the INF kbfiltr.inf to have the right hardware ID.
If not, replace the *pnpBAAD with the hardware ID for your keybord (e.g.
*pnp0303 or ACPI\pnp0303.).

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

Doron Holan [MS]

unread,
Aug 9, 2002, 10:11:22 PM8/9/02
to

Weiyang Zhou

unread,
Aug 14, 2002, 11:51:40 AM8/14/02
to
Should the command line be "install kbfiltr.inf *pnp0303" or "install
kbfiltr.inf *pnpBAAD" ?

Thanks

Weiyang


""Kumar Rajeev [MS]"" <ku...@online.microsoft.com> wrote in message
news:HOhiGNzQCHA.1348@cpmsftngxa06...

Weiyang Zhou

unread,
Aug 14, 2002, 12:37:18 PM8/14/02
to
The hardware ID of my keyboard is *pnp030b. I changed theINF kbfiltr.inf to
use *pnp030b. Then I use "install kbfiltr.inf *pnp030b" to install the
filter drive, but it seems install the filter driver twice. If I go to
Device Manager window and expand the Keyboards node, there are two "DDK
sample keyboard filter" and one of them has a error icon. Any idea?

Thanks

Weiyang


"Weiyang Zhou" <w...@vpinc.biz> wrote in message

news:uFgmXp6QCHA.4268@tkmsftngp08...

Weiyang Zhou

unread,
Aug 14, 2002, 1:22:48 PM8/14/02
to
It works now. The problem is when the install searches the existing device,
it uses a case-sensitive comparison. I just need to change the Hardware ID
of the command line to *PNP030b to match my keyboard Hardware ID.

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...
>

0 new messages