Re: Keyboard filter driver for the multimedia and power keys on a usb keyboard.
- From: Robert Marquardt <robert_marquardt@xxxxxx>
- Date: Fri, 27 Jan 2006 18:51:30 +0100
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.
.
- Follow-Ups:
- References:
- Prev by Date: Re: Q) Disabling IO port space during it's installation time.
- Next by Date: Re: Q) Disabling IO port space during it's installation time.
- Previous by thread: Keyboard filter driver for the multimedia and power keys on a usb keyboard.
- Next by thread: Re: Keyboard filter driver for the multimedia and power keys on a usb keyboard.
- Index(es):
Relevant Pages
|