Tech Support > Microsoft Windows > Drivers > Re: Communication between user mode application and keyboard driver in Windows XP
Re: Communication between user mode application and keyboard driver in Windows XP
Posted by Doron Holan [MS] on July 18th, 2003


even if you could send the IOCTL (which you might be able to if you don't
open the device for write access), i8042prt sanity checks the LedFlags you
are setting. Since you are setting values outside of scroll, num, or caps
lock (and kana), your request will be rejected. also, if you are going to
try to "program" the device by repeatedly setting LED state, i8042prt will
just complete a set indicators request that is setting the LEDs to their
current state.

you could create a device upper filter for the ps2 keyboard and then send
write buffer commands using the appropriate IRPs (look them up in the DDK
under input, non hid). see the kbdfiltr example in the ddk and this link on
how to talk to your driver:

http://support.microsoft.com/default...;en-us;Q262305

d

--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Marian" <marst@pobox.sk> wrote in message
news:080d01c34c86$06699fe0$a001280a@phx.gbl...