zoukankan      html  css  js  c++  java
  • 设备发现之初探 Setupapi

    本文介绍Windows设备管理领域,重点讨论SetupDiXXX一族API的细节。

    Devguid.h定义了经典设备的类GUID ,形如:GUID_DEVCLASS_Xxx

    例: GUID_DEVCLASS_PRINTQUEUE

    计算机HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlClass

    1) Starting with Windows 2000,drivers do not name device objects. Instead, they make use of device interface classes. A device interface class is a way of exporting device and

    driver functionality to other system components, including other drivers, as well as user-mode applications.

    从Windows 2000 开始,驱动不在命名设备对象. 取而代之,他们使用设备接口类。设备接口类是一种导出设备和驱动功能给其它系统组件的途径,包括其它驱动和用户模式应用程序。

    2) A driver can register a device interface class, then enable an instance of the class for each device object to which user-mode I/O requests might be sent.

    3) Each device interface class is associated with a GUID. The system defines GUIDs for common device interface classes in device-specific header files. Vendors can create additional device interface classes.

    For example, three different types of mouse devices could be members of the same device interface class, even if one connects through a USB port, a second through a serial port, and the third through an infrared port

    Device setup classes vs. Device interface classes vs. Windows classes

    Device setup classes provide a mechanism for grouping devices that are installed and configured in the same way.

    Device interface classes provide a mechanism for grouping devices according to shared characteristics.

    Windows classes are defined in the system file Devguid.h.This file defines a series of GUIDs for setup classes.

    参考资料

    Overview of Device Setup Classes

    Overview of Device Interface Classes

    Windows Classes vs. Interface Classes

  • 相关阅读:
    npm的使用
    js 数组去重
    js实现对象或者数组深拷贝
    js简单排序
    js判断类型
    鼠标移入移出事件
    jq中的attr和prop属性
    移动端底部被输入法顶起的解决办法
    vue中的number
    javascript要点(上)
  • 原文地址:https://www.cnblogs.com/anyboo/p/13224420.html
Copyright © 2011-2022 走看看