This is a simple array processing problem. You get an array in the
service callback function. You visit each element in the array. If it
matches a key you want to remap, you change the element in the array
from the old value to the new remapped value. The design decision you
have to make is how you store this remapping data. I can think of 2
ways to easily do this
-
define an array that describes the mapping, I gave this structure to
you in my original response. For each KEYBOARD_INPUT_DATA you receive in
the callback, you check it against each element in the remapping array. -
you encode the remapping data in a switch statement, where each case
is the old value you want to remap from
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Sunday, May 13, 2007 7:22 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] kbfiltr mapping keys
Guys, can we please not discuss this any further (Whether I am too young
to program at this level or not. It is everyone’s personal opinion).
So I couldn’t really make of what Doron wrote in his first post. Can
someone please tell me that in “english”… no offense.
Please guys leave the matter og age alone and try to help me, I would be
really grateful to you if I succeeded in mapping keys from driver level.
Thanks a lot
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer