请问Device setup class 与 Device interface class有什么区别和关系,看了MSDN的介绍但还是不太明白,请高人指教:)

解决方案 »

  1.   

      可能是吧, 那你说说USB的也行, 也许对我也有启发:)
      

  2.   

      我看到关于这两个名词的解释是在查询SetupDiCreateDeviceInfoListEx这个函数时通过"Device information set"超连接找到的, 但是没有看懂:)
      

  3.   

    这是硬件串口的还是USB的。看样子好像一个是设置安装类,一个是接口类!
      

  4.   

    我只抄过SetupAPI的代码,没细看过。感觉就是,微软把挺简单的东西搞得挺复杂的。
      

  5.   

    usb协议里有 设备描述符,设备描述符里面指明有几个配置描述符,配置描述符里面指明有几个接口描述符,接口描述符里面指明有几个端点描述符。想来跟你的需要不太一样。
      

  6.   

      不只是USB协议, 我看MSDN的介绍应该是对整个WDM驱动来说的, 是适用于所有设备的, 越看越不明白.
      

  7.   

    我也对Device setup class 与 Device interface class不太明白
    网上找了下:
    Device setup classes provide a mechanism for grouping devices that are installed and configured in the same way.
    A setup class identifies the class installer and class co-installers that are involved in installing the devices that belong to the class. 
    For example, all CD-ROM drives belong to the CDROM setup class and will use the same co-installer when installed.Device interface classes provide a mechanism for grouping devices according to shared characteristics. 
    Rather than tracking the presence in the system of an individual device, drivers and user applications can register to be notified of the arrival or removal of any device that belongs to a particular interface class. 
    个人理解:
    setup class一样的话表示这些设备的驱动是可以用同样的方法安装. 鼠标 和  U盘的驱动安装是一样的 所以setup class一样
    setup class一般是放在inf文件里面, 表明安装此驱动的时候 操作系统可以用这种方法去安装. 
    interface class 我也挺迷惑的, 他是放在驱动的sys文件里面的 应该是说厂商定义的吧, 不知道是否一个多接口的USB设备 会有多个interface class 没玩过多接口的设备.