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

  • 相关阅读:
    招聘里常见的沟通能力到底是什么
    C++服务器linux开发环境管理
    网络游戏通信协议双向迭代加密
    win10控制台程序printf死锁问题
    手游系统逻辑档案之通信协议
    STL插入删除和查询测试
    MATLAB复制图片时边框大的问题
    2019网易笔试题C++--丰收
    暴力求解最长公共子串
    顺时针打印矩阵
  • 原文地址:https://www.cnblogs.com/anyboo/p/13224420.html
Copyright © 2011-2022 走看看