Raw PDO to send IOCTL to upper filter driver (kbfiltr/moufiltr) to enable/disable device

前端 未结 2 1559
没有蜡笔的小新
没有蜡笔的小新 2021-01-31 05:21

I am quite new to driver development and trying to write a simple filter driver that will enable or disable a keyboard or mouse device. If I can make it work, I want to use it t

2条回答
  •  离开以前
    2021-01-31 05:45

    First of all: You can do what you want to do (disable the touchpad on my laptop when a mouse is plugged in) in the user-mode. It will be much simpler and safer. Look at Using Device Installation Functions and WM_DEVICECHANGE

    To debug problems in your code: Get a memory dump from BSOD or setup a kernel debugger connection (using a COM-port on your virtual PC redirected to a pipe). See Debugging Tools for Windows

    Have fun!

提交回复
热议问题