找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 3816|回复: 0
打印 上一主题 下一主题
收起左侧

Windows 系统中的设备类

[复制链接]
跳转到指定楼层
楼主
ID:90014 发表于 2015-9-13 16:48 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
两种设备类
在Windows系统的驱动中,有两种不同用途的设备类。在每种类中,系统将具有某种类似特性的设备组织在一起,从而形成了设备集。
设备安装类:Device Setup Classes
安装和配置过程相似的设备集合。 设备接口类:Device Interface Classes能够提供相似能力功能的设备集合。
正确区分这两种类的概念很重要。因为它们使用相同的安装函数以及数据结构,因此很容易混淆。同时,一个设备经常会同时属于一个设备安装类以及几个设备接口类。 不管怎样,这两种类有着不同的存在目的,使用不同的注册区域,类的GUID也依赖于不同的头文件集。
设备安装类主要为安装过程服务,用来确认该类的安装程序或协同安装程序。如所有的CDROM属于CDROM安装类,在安装时,使用相同的安装程序。
设备接口类提供了将具有相同特性的设备分组。除跟踪某一设备是否存在在系统中之外,驱动程序和用户也可以在设备接入或移出时得到通知。
安装类都在 devguid.h中定义。该文件中只包括了一系列设备安装类的GUID,而不包括设备接口类的GUID。两者不能混淆。
设备接口类的定义没有在单一文件中提供。只有在属于某一类特定的设备文件中,才定义相关的设备接口类GUID。例如,ntddmou.h 中包含了 GUID_CLASS_MOUSE,代表鼠标类接口。ntddpar.h 定义了并行设备GUID ;  ntddpcm.h 中定义标准PCMCIA 设备接口;  ntddstor.h 中定义存储设备接口等。
接口类中定义的 GUID 应该在系统中进行注册,以便得到设备接口变化的通知。没有注册的接口类无法获得设备变化通知的。
定义新的设备类或接口类是,切勿使用单一的GUID来表示这两个类。

Windows 系统中已经定义的安装类
具体定义请参考 devguid.h, 典型的符号名称为 GUID_DEVCLASS_Xxx。.在注册表中的位置是 ..\CurrentControlSet\Control\Class\ClassGUID。
Battery Devices 电池设备,包括电池和UPS设备Class = Battery ClassGuid = {72631e54-78a4-11d0-bcf7-00aa00b7b32a} Biometric Device 生物测量设备,用于个人的生命状态监控
Class = Biometric ClassGuid = {53D29EF7-377C-4D14-864B-EB3A85769359} Bluetooth Devices 蓝牙设备
Class = Bluetooth  ClassGuid = {e0cbf06c-cd8b-4647-bb8a-263b43f0f974} CD-ROM Drives 包括CDROM,SCSI型CDROM,并且提供 CD 音频驱动及换碟器驱动。
         Class = CDROM, ClassGuid = {4d36e965-e325-11ce-bfc1-08002be10318}
Disk Drives 磁盘驱动器,包括硬盘控制器HDC及SCSI 适配器类。Class = DiskDrive ClassGuid = {4d36e967-e325-11ce-bfc1-08002be10318} Display Adapters 显示接口 包括视频接口,显示驱动及微端口驱动。
Class = Display ClassGuid = {4d36e968-e325-11ce-bfc1-08002be10318} Floppy Disk Controllers 软盘控制器
Class = FDC ClassGuid = {4d36e969-e325-11ce-bfc1-08002be10318} Floppy Disk Drives 软盘驱动器
Class= FloppyDisk ClassGuid= {4d36e980-e325-11ce-bfc1-08002be10318} Hard Disk Controllers 硬盘控制器,包括ATA,ATAPI接口控制器,但不包括SCSI及RAID控制器。
Class = HDC ClassGuid = {4d36e96a-e325-11ce-bfc1-08002be10318} Human Interface Devices (HID) 人机接口设备,交互式输入设备,都通过系统提供的HID类驱动进行操作。包括USB设备和非USB设备
Class = HIDClass ClassGuid = {745a17a0-74d3-11d0-b6fe-00a0c90f57da} IEEE 1284.4 Devices 1284.4 多功能外围设备
Class=Dot4 ClassGuid = {48721b56-6795-11d2-b1a8-0080c72e74a2} IEEE 1284.4 Print Functions 1284.4打印机功能,属于1284.4设备的一个字设备。
Class = Dot4Print ClassGuid = {49ce6ac8-6f86-11d2-ble5-0080c72e74a2} IEEE 1394 Devices 同时支持 61883 协议,为DV,MPEG2等提供接口。
Class = 61883  ClassGuid = {7ebefbc0-3200-11d2-b4c2-00a0C9697d07} IEEE 1394 Devices 支持 AVC 协议
Class = AVC  ClassGuid = {c06ff265-ae09-48f0-812c-16753d7cba83} IEEE 1394 Devices 支持 SBP2 协议
Class = SBP2 ClassGuid = {d48179be-ec20-11d1-b6b8-00c04fa372a7} IEEE 1394 总线控制器 包括连接在PCI总线上的1394控制器,但不包括1394外围设备。
        Class = 1394  ClassGuid = {6bdd1fc1-810f-11d0-bec7-08002be2092f}
Imaging Device  图像设备,包括图像捕捉,数码相机及扫描仪等。
Class = Image ClassGuid = {6bdd1fc6-810f-11d0-bec7-08002be2092f}  IrDA Devices 红外设备,包括串行和快速红外网络接口。Class = Infrared ClassGuid = {6bdd1fc5-810f-11d0-bec7-08002be2092f} Keyboard 键盘类
Class = Keyboard ClassGuid = {4d36e96b-e325-11ce-bfc1-08002be10318} Media Changers 媒体更换装置
Class = MediumChanger ClassGuid = {ce5939ae-ebde-11d0-b181-0000f8753ec4} Memory Technology Driver 存储器技术驱动,如闪存卡等。
Class = MTD ClassGuid = {4d36e970-e325-11ce-bfc1-08002be10318} Modem 调制解调器
Class = Modem ClassGuid = {4d36e96d-e325-11ce-bfc1-08002be10318} Monitor Class = Monitor
ClassGuid = {4d36e96e-e325-11ce-bfc1-08002be10318} This class includes display monitors. An INF for a device of this class installs no device driver(s), but rather specifies the features of a particular monitor to be stored in the registry for use by drivers of video adapters. (Monitors are enumerated as the child devices of display adapters.)
Mouse Class = Mouse
ClassGuid = {4d36e96f-e325-11ce-bfc1-08002be10318} This class includes all mouse devices and other kinds of pointing devices, such as trackballs. That is, this class also must be specified in the (secondary) INF for an enumerated child HID mouse device.
Multifunction Devices Class = Multifunction
ClassGuid = {4d36e971-e325-11ce-bfc1-08002be10318} This class includes combo cards, such as a PCMCIA modem and netcard adapter. The driver for such a Plug and Play multifunction device is installed under this class and enumerates the modem and netcard separately as its child devices.
Multimedia Class = Media
ClassGuid = {4d36e96c-e325-11ce-bfc1-08002be10318} This class includes Audio and DVD multimedia devices, joystick ports, and full-motion video capture devices.
Multiport Serial Adapters Class = MultiportSerial
ClassGuid = {50906cb8-ba12-11d1-bf5d-0000f805f530} This class includes intelligent multiport serial cards, but not peripheral devices that connect to its ports. It does not include unintelligent (16550-type) mutiport serial controllers or single-port serial controllers (see the Ports class).
Network Adapter Class = Net
ClassGuid = {4d36e972-e325-11ce-bfc1-08002be10318} This class includes NDIS miniport drivers excluding Fast-IR miniport drivers, NDIS intermediate drivers (of virtual adapters), and CoNDIS MCM miniport drivers.
Network Client Class = NetClient
ClassGuid = {4d36e973-e325-11ce-bfc1-08002be10318} This class includes network and/or print providers.
Network Service Class = NetService
ClassGuid = {4d36e974-e325-11ce-bfc1-08002be10318} This class includes network services, such as redirectors and servers.
Network Transport Class = NetTrans
ClassGuid = {4d36e975-e325-11ce-bfc1-08002be10318} This class includes NDIS protocols, CoNDIS stand-alone call managers, and CoNDIS clients, as well as higher level drivers in transport stacks.
PCI SSL Accelerator Class = Security Accelerator
ClassGuid = {268c95a1-edfe-11d3-95c3-0010dc4050a5} This class includes devices that accelerate secure socket layer (SSL) cryptographic processing.
PCMCIA Adapters Class = PCMCIA
ClassGuid = {4d36e977-e325-11ce-bfc1-08002be10318} This class includes PCMCIA and CardBus host controllers, but not PCMCIA or CardBus peripherals. Drivers for this class are system-supplied.
Ports (COM & LPT ports) Class = Ports
ClassGuid = {4d36e978-e325-11ce-bfc1-08002be10318} This class includes serial and parallel port devices. See also the MultiportSerial class.
Printers Class = Printer
ClassGuid = {4d36e979-e325-11ce-bfc1-08002be10318} This class includes printers.
Printers, Bus-specific class drivers Class = PNPPrinters
ClassGuid = {4658ee7e-f050-11d1-b6bd-00c04fa372a7} This class includes SCSI/1394-enumerated printers. Drivers for this class provide printer communication for a specific bus.
Processors Class = Processor
ClassGuid = {50127dc3-0f36-415e-a6cc-4cb3be910b65} This class includes processor types.
SCSI and RAID Controllers Class = SCSIAdapter
ClassGuid = {4d36e97b-e325-11ce-bfc1-08002be10318} This class includes SCSI HBAs (Host Bus Adapters) and disk-array controllers.
Smart Card Readers Class = SmartCardReader
ClassGuid = {50dd5230-ba8a-11d1-bf5d-0000f805f530} This class includes smart card readers.
Storage Volumes Class = Volume
ClassGuid = {71a27cdd-812a-11d0-bec7-08002be2092f} This class includes storage volumes as defined by the system-supplied logical volume manager and class drivers that create device objects to represent storage volumes, such as the system disk class driver.
System Devices Class = System
ClassGuid = {4d36e97d-e325-11ce-bfc1-08002be10318} This class includes HALs, system buses, system bridges, the system ACPI driver, and the system volume manager driver.
For Windows 9x/Me, this class also includes battery devices and UPS devices.
Tape Drives Class = TapeDrive
ClassGuid = {6d807884-7d21-11cf-801c-08002be10318} This class includes tape drives, including all tape miniclass drivers.
USB Class = USB
ClassGuid = {36fc9e60-c465-11cf-8056-444553540000} This class includes USB host controllers and USB hubs, but not USB peripherals. Drivers for this class are system-supplied.
Windows CE USB ActiveSync Devices Class = WCEUSBS
ClassGuid = {25dbce51-6c8f-4a72-8a6d-b54c2b4fc835} This class includes Windows CE ActiveSync devices.
The WCEUSBS setup class supports communication between a personal computer and a device that is compatible with the Windows CE ActiveSync driver (generally, PocketPC devices) over USB.
Windows SideShow Class = SideShow
ClassGuid = {997b5d8d-c442-4f2e-baf3-9c8e671e9e21} This class includes all devices that are compatible with Windows SideShow. This class is supported in Windows Vista and later versions of Windows.                                                                                                                    
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 顶 踩
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表