我写了一个usb函数驱动程序 . 如果我想要插入计算机的任何USB设备加载此驱动程序而不是真正的驱动程序,我该怎么办?我只知道当总线驱动程序创建pdo时我是否更改了vid / pid,我可以做到 . 但我不知道是否有一种简单的方法可以做到这一点 . 如何改变 Bus 车的行为?过滤器驱动程序可以制作吗?该平台是Windows .
最好的办法是实现一个HID (Human Interface Device)驱动程序 . 通过遵循HID指南,您已经支持所需的大多数功能,而无需编写自定义设备驱动程序 .
以下是一些可以帮助您入门的链接:
Using the HID class eases the job of writing USB device drivershttp://www.edn.com/design/communications-networking/4336292/Using-the-HID-class-eases-the-job-of-writing-USB-device-drivers
Touch, Input, and HID: Architecture and Driver Supporthttp://msdn.microsoft.com/en-us/library/windows/hardware/gg487435.aspx
要通过网络重定向,请查看FreeRDP project . 它是开源的,在Apache license下,所以你可以用代码做任何你想做的事情 .
1 回答
最好的办法是实现一个HID (Human Interface Device)驱动程序 . 通过遵循HID指南,您已经支持所需的大多数功能,而无需编写自定义设备驱动程序 .
以下是一些可以帮助您入门的链接:
Using the HID class eases the job of writing USB device drivers
http://www.edn.com/design/communications-networking/4336292/Using-the-HID-class-eases-the-job-of-writing-USB-device-drivers
Touch, Input, and HID: Architecture and Driver Support
http://msdn.microsoft.com/en-us/library/windows/hardware/gg487435.aspx
要通过网络重定向,请查看FreeRDP project . 它是开源的,在Apache license下,所以你可以用代码做任何你想做的事情 .