Hi,
I have a special keyboard which connects to an industrial PC by dual-port
RAM. The industrial PC will have no other keyboard. I want to write a
kernel-mode dirver with the full functionality of a normal keyboard. I have
a driver to handle the dual-port RAM. At the present I send keyboard strokes
from user-mode by SendInput API function, but SendInput can not synthesize
Ctrl-Alt-Del.
How can I send keyboard strokes in the kernel? I have got some instruction
from Mr. Holan:
“To send keyboard strokes in the kernel, you must interface with kbdclass
directly; there is no equivalent of SendInput. You need to have a pnp
device stack whose device class is the keyboard class (this is set by
the INF) and report keyboard strokes accordingly. There is the i8042prt
(I think it is called pnpi8042 actually) example in the DDK which shows
a keyboard port driver and kbdfiltr which shows a keyboard filter
driver, but is much simpler then i8042prt”.
A “keyboard driver” is required, not a “keyboard filter driver”, isn’t it?
I have not found examples in the DDK and in the web how to develop a custom
keyboard driver. I study the DDK documentation, but I have no idea how to
implement Mr. Holan’s instructions. There is an example for PS/2 (i8042prt)
and an other example for a filter driver (kbfiltr), but I have not found in
it how to “interface with kbdclass dircetly”. I need some more help.
Pleeeeeeease help!!
Regards,
Ferenc Deak