Re: Keyboard filter driver for the multimedia and power keys on a usb keyboard.



lichtf wrote:
Hello all --

I am trying to write a keyboard filter driver that will basically eat
the multimedia and the power keys on a USB keyboard.  I used the
kbfiltr sample from the DDK and got it working for a PS/2 keyboard, but
it doesn't work for a USB keyboard.

I've read some other posts and it looks like the multimedia and the
power keys are separate HID  collections.  If this is true do I need to
write a HID filter driver for these collections?

They are indeed separate collections and therefore show up as separate devices. The multimedia keys are not part of the normal keyboard handling. They get read by a service and posted as WM_APPCOMMAND messages to the foreground application. Depending on the return value for the message handling the keys get suppressed or not.


So if you only want to suppress it for your application then simply handle WM_APPCOMMAND.
.




Relevant Pages

  • Keyboard filter driver for the multimedia and power keys on a usb keyboard.
    ... I am trying to write a keyboard filter driver that will basically eat ... the multimedia and the power keys on a USB keyboard. ... I've read some other posts and it looks like the multimedia and the ...
    (microsoft.public.development.device.drivers)
  • Re: Format hard drive with XP upgrade wont work because of "newer
    ... I was wondering about the USB keyboard! ... Even when i boot from the XP Upgrade CD...I still get what looks like the ... host, or your BIOS is not ...
    (microsoft.public.windowsxp.basics)
  • Re: Strange screen cause the system to hang during boot
    ... > window with a light blue background. ... > managed to boot up linux in text mode. ... at the keyboard to log in. ... Are you saying you've got a USB keyboard? ...
    (comp.os.linux.setup)
  • Re: Linux 2.6.21-rc6
    ... that the second suspend hangs at "i8042 i8042: ... This is kinda interesting because I'm normally using a USB keyboard ... I'd still rather like to use my USB keyboard though. ... as USB legacy support is disabled (however without legacy support I ...
    (Linux-Kernel)
  • USB keyboard issues
    ... to work well in legacy apps and windows. ... if I boot from a USB memory ... booting the same files as a win98se startup floppy, the USB keyboard ...
    (alt.comp.periphs.mainboard.asus)