Exetools

Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   Programming keyboard and mouse (https://forum.exetools.com/showthread.php?t=6800)

floppy 02-13-2005 23:27

Programming keyboard and mouse
 
Hi, i would learn to control keyboard and mouse in a windows kernel mode driver, to disable keys or buttons, turn off/on leds. anyone knows any books and examples which explain how can i do? thanks
floppy

Satyric0n 02-14-2005 04:45

The Windows DDK comes with the sourcecode for example mouse and keyboard drivers. I assume that if you're writing Windows drivers, you must already have the DDK, so you should already have everything you need. ;)

AgentSmith 02-14-2005 16:22

Hello,

Try if this link will help you:

www sysinternals com/ntw2k/source/ctrl2cap.shtml

It is kerrnel-mode device driver that filters the system's keyboard class driver.

At the bottom check for related info:

The Windows NT and Windows 2000 DDK sample \src\storage\filter\diskperf
The Windows 2000 DDK sample \src\input\kbfiltr

hope it helps,
asmith

floppy 02-15-2005 03:56

They wer very useful, specially ctrl2cap from sysinternals. I also found another example in the Four-F kmdkit ( \examples\advanced\KbdSpy ). I write my own filter driver for the keyboard, but, during debugging, I noticed that it isn't able to filter keys used in softice (I think it's normal). How can I do to solve this problem? I know I can control several things sending commands to I/O ports, but I would like to not use "in" and "out" instructions. Thanks

Edited by floppy: If I cannot do anything about it, can anybody explain why? I would like to go deep in this stuff. Thanks for all.


All times are GMT +8. The time now is 12:21.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX