阅读:1256回复:3
(60分)再问一编,DDK例子KBdClass中,GrandMaster什么意思?
<EOM>
|
|
沙发#
发布于:2002-03-08 18:45
Configuration of Device Objects for more than One Device
Kbdclass and Mouclass can support more than one device in two different modes. In the one-to-one mode, each device has an independent device stack. The class driver creates and attaches an independent class DO to each device stack. Each device stack has its own control state and input buffer. The Microsoft? Win32? subsystem accesses input from each device through a unique file object. In the grandmaster mode, the class driver operates all the devices in the following way: The class driver creates a grandmaster class DO that represents all the devices and a subordinate class DO for each device. The class driver attaches a subordinate class DO to each device stack. Below the subordinate class DO, the device stack is same as that created in the one-to-one mode. The grandmaster class DO controls the operation of all the subordinate DOs. The Win32 subsystem accesses all device input through the file object that represents the grandmaster class device. All device input is buffered in the grandmaster\'s data queue. The grandmaster maintains a single global device state. Kbdclass and Mouclass operate in the one-to-one mode if their registry entry value ConnectMultiplePorts is set to 0x00 (under the key HKLM\\Services\\CurrentControlSet\\<class service>\\Parameters, where class service is Kbdclass or Mouclass). Otherwise Kbdclass and Mouclass operate in grandmaster mode. |
|
板凳#
发布于:2002-03-11 12:28
To yiyiz:
谢谢你,但你写的都是DDK,我当然看过了。我其实是想问关于KBdclass这个驱动里的逻辑结构,不知道你读过没有。如果读过,我要多问问你。 |
|
地板#
发布于:2002-03-27 13:21
any info? need ur help urgently.
|
|