How to put the keyboard upperclass filter driver in Win98

Dear all,

I made the WDM keyboard upperclass filter driver (to change key press) in
winXP and work prefectly.
I want to change the driver into Win98. Which registry key should i modify
to install the filter driver ?

I tried to put in
“HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Class/Keyboard”. There
are two keyboard drivers , one is for ACPI and other one is kbdhid.vxd.
(The “DriveEntry” and “AddDevice” functions in the filter were called, and
“AddDevice” was called twice.)

Actually, I’m not familar with win98 driver programming, can anyone tell
me which registry key i should modify and the device driver structure of
Keyboard in Win98 ?

Thank you very much !

Regards,
Yu Chi Wai

There is no easy way to do this in win9x. First, WDM does not apply to
keyboard input, so you need to write a VXD. Second, the keyboard
interface is a 16 bit ASM level interface, not a C calling interface.
Third, I think the interface is a direct call interface. As such, there
is no way to hook it. Those more familiar with the win9x model can
correct me if I am wrong.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of yu chi wai
Sent: Wednesday, December 15, 2004 10:20 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to put the keyboard upperclass filter driver in
Win98

Dear all,

I made the WDM keyboard upperclass filter driver (to change key press)
in
winXP and work prefectly.
I want to change the driver into Win98. Which registry key should i
modify
to install the filter driver ?

I tried to put in
“HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Class/Keyboard”.
There
are two keyboard drivers , one is for ACPI and other one is kbdhid.vxd.
(The “DriveEntry” and “AddDevice” functions in the filter were called,
and
“AddDevice” was called twice.)

Actually, I’m not familar with win98 driver programming, can anyone
tell
me which registry key i should modify and the device driver structure of
Keyboard in Win98 ?

Thank you very much !

Regards,
Yu Chi Wai


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

However (and this contradicts the response I just made in m.p.d.d.d), if
you can get your WDM driver installed and running, it can use _asm code
to call Hook_Device_Service with VKD_Filter_Keyboard_Input just as
easily as a VxD can (which, BTW, isn’t all that easily). It won’t be
“pure WDM” any more, but a few ifdefs can take care of that. It might be
easier to write a VxD to do it, though, depending on the circumstances
and tools available to the OP.

I don’t necessarily recommend this, but at least it’s doable.

There are numerous explanations available of how to do this. Google for
VKD_Filter_Keyboard_Input.

Doron Holan wrote:

There is no easy way to do this in win9x. First, WDM does not apply to
keyboard input, so you need to write a VXD. Second, the keyboard
interface is a 16 bit ASM level interface, not a C calling interface.
Third, I think the interface is a direct call interface. As such, there
is no way to hook it. Those more familiar with the win9x model can
correct me if I am wrong.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of yu chi wai
Sent: Wednesday, December 15, 2004 10:20 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to put the keyboard upperclass filter driver in
Win98

Dear all,

I made the WDM keyboard upperclass filter driver (to change key press)
in
winXP and work prefectly.
I want to change the driver into Win98. Which registry key should i
modify
to install the filter driver ?

I tried to put in
“HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Class/Keyboard”.
There
are two keyboard drivers , one is for ACPI and other one is kbdhid.vxd.
(The “DriveEntry” and “AddDevice” functions in the filter were called,
and
“AddDevice” was called twice.)

Actually, I’m not familar with win98 driver programming, can anyone
tell
me which registry key i should modify and the device driver structure of
Keyboard in Win98 ?

Thank you very much !

Regards,
Yu Chi Wai


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


…/ray..

Please remove “.spamblock” from my email address if you need to contact
me outside the newsgroup.