Did you install it as a class filter on the same machine where it was installed as a device upper filter? Then you can easily be in the stack twice
d
debt from my phone
From: xxxxx@hotmail.com
Sent: 2/15/2012 6:11 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] kbd filter driver as a class filter driver
Hi Doron,
Actually I have added some additional codes in KbFilter_ServiceCallback( ) based on the DDK sample, so that when 1 key is pressed, I can map it to another key. For example F1->F11 and F11->F21.
According to DDK, this sample is for PS2 keyboard. If we want to use it as a class filter driver, we need to change the registry as I mentioned yesterday.
After the modification, the PS2 keyboard got problem. By right, when F1 key is pressed, F11 key effect is generated. But after debugging I found that the mapping seems happen twice, that is, the F11 key effect and further F21 effect are generated. I tried others keys, the same problem. It seems this filter function is called twice for PS2 keyboard.
So I suspect the registry modification is not complete. Maybe I need more configuration.
BTW, the registration modification is based on the comments in the sample code. The details:
If you want to filter keyboard inputs from all the keyboards (ps2, usb)
plugged into the system then you can install this driver as a class filter
and make it sit below the kbdclass filter driver by adding the service
name of this filter driver before the kbdclass filter in the registry at
" HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\
{4D36E96B-E325-11CE-BFC1-08002BE10318}\UpperFilters"
Thanks and Regards,
Jeff
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer