阅读:1609回复:11
捧场回答都有分!
谁写过win2000的键盘驱动程序,每次更改调试,都要
重启电脑么? |
|
沙发#
发布于:2003-06-26 16:02
推荐一个人:
可以问问zydcat :D |
|
板凳#
发布于:2003-06-26 17:09
应该是吧,除非能动态加载驱动程序
|
|
地板#
发布于:2003-06-26 17:16
有可能。我看我的键盘就不能“disable”(PS/2)。
不知道你的键盘驱动是传统的还是基于HID的? |
|
|
地下室#
发布于:2003-06-26 17:22
键盘驱动我没有写过,ddk 中的 input 下有一些例子不知道对你有无帮助。
|
|
|
5楼#
发布于:2003-06-26 17:24
你是否用停用、启用来重新加载你的驱动的,一般当有资源未释放时就会要求重启的。
|
|
|
6楼#
发布于:2003-06-26 21:41
推荐一个人: 干吗推荐我 :D |
|
|
7楼#
发布于:2003-06-27 09:40
我来捧场
|
|
|
8楼#
发布于:2003-06-27 09:42
请注意,分已给完
|
|
9楼#
发布于:2003-06-27 22:23
我觉得win2000的键盘驱动程序和其他的驱动程序没有本质区别吧。
只要是pnp的都不用重启吧。瞎猜的。呵呵 |
|
|
10楼#
发布于:2003-06-27 22:34
可能对你又用(from Programming WDM 2e)
Non-USB human input devices (HID), including mice, keyboards, joysticks, steering wheels, and so on. If you have a USB device for which the generic behavior of HIDUSB.SYS (the Microsoft driver for USB HID devices) is insufficient, you would write a HIDCLASS minidriver too. The main characteristic of these devices is that they report user input by means of reports that can be described by a descriptor data structure. For such devices, HIDCLASS.SYS serves as the class driver and performs many functions that Direct-Input and other higher layers of software depend on, so you’re pretty much stuck with using HIDCLASS.SYS. This is hard enough that I’ve devoted considerable space to it later in this book. As an aside, HIDUSB.SYS is itself a HIDCLASS minidriver. |
|
|
11楼#
发布于:2003-06-27 22:36
Mouse and Keyboard Drivers
Two connection technologies―universal serial bus (USB) and 8042―are commonly used nowadays for keyboards and mice in Windows systems. Figure 16-3 illustrates the driver stack for a USB mouse. HIDUSB.SYS (a HIDCLASS minidriver) plays the role of a bus driver, while MOUHID.SYS acts as the function driver. MOUCLASS.SYS is a class upper filter for the Mouse class. Figure 16-3. Driver stack for a USB mouse. Figure 16-4 is a parallel diagram for a PS/2 mouse on a different system. I8042.SYS is the function driver for the PS/2 mouse port. On this particular system, ACPI.SYS (the driver with overall responsibility for power management) acts as the bus driver. Figure 16-4. Driver stack for a PS/2 mouse. Evidently, both driver stacks have MOUCLASS.SYS in common. MOUCLASS presents a consistent mouse interface to the rest of the system, which is how it comes to pass that you can use either type of mouse (or both at the same time) on a Windows computer. For a keyboard, the only important difference in the driver stacks would be that KBDCLASS is at the top. |
|
|