当前位置: 代码迷 >> 驱动开发 >> 驱动开发中设备的GUID和inf文件里面CUID有什么区别与联系?解决思路
  详细解决方案

驱动开发中设备的GUID和inf文件里面CUID有什么区别与联系?解决思路

热度:94   发布时间:2016-04-28 11:17:55.0
驱动开发中设备的GUID和inf文件里面CUID有什么区别与联系?
期待达人解惑!多谢!

------解决方案--------------------
inf 文件 [version] 中的classGUID 是 Device Setup Classes
Device Setup Classes

To facilitate device installation, devices that are set up and configured in the same way are grouped into a device setup class. For example, SCSI media changer devices are grouped into the MediumChanger device setup class. The device setup class defines the class installer and class co-installers that are involved in installing the device. 

Microsoft defines setup classes for most devices. IHVs and OEMs can define new device setup classes, but only if none of the existing classes apply. For example, a camera vendor doesn't need to define a new setup class because cameras fall under the Image setup class. Similarly, uninterruptible power supply (UPS) devices fall under the Battery class. 

There is a GUID associated with each device setup class. System-defined setup class GUIDs are defined in devguid.h and typically have symbolic names of the form GUID_DEVCLASS_Xxx. 

The device setup class GUID defines the ..\CurrentControlSet\Control\Class\ClassGUID registry key under which to create a new subkey for any particular device of a standard setup class. 


驱动程序中的是 Device Interface Classes

Device Interface Classes
Device interface classes are the means by which drivers make devices available to applications and other drivers.

This section contains the following topics:


------解决方案--------------------
guid 本驱动在系统中的全局标识
cuid 这个是类标识,通过这个可以判断 加载顺序等。