HKLM\SYSTEM\CurrentControlSet\Enum注册表树

来源:互联网 发布:人工智能培训就业班 编辑:程序博客网 时间:2024/06/06 00:45

HKLM\SYSTEM\CurrentControlSet\Enum注册表树包含了系统的设备信息。即插即用(PnP)管理器为每个设备创建了一个名为HKLM\SYSTEM\CurrentControlSet\Enum\Enumerator\deviceID的子键(Subkey)。这些键值下面的每一项都是目前系统中存在的每个设备实例的子键。这些被称作设备的硬件键值(或设备键值)的子键,拥有一些如设备描述,硬件ID,兼容ID和资源需求等信息。
枚举树被保留给操作系统组件使用,它们的排列也会随之改变。驱动程序和用户模式的设备安装组件必须使用系统提供的函数,比如IoGetDeviceProperty和SetupDiGetDeviceRegistryProperty,从这个树上获取信息。驱动程序和Windows应用程序不能直接访问该树。当你调试驱动程序时,你可以直接使用注册表编辑器(regedit)查看这个树。

来源:http://technet.microsoft.com/zh-cn/library/ff546173

The HKLM\SYSTEM\CurrentControlSet\Enum registry tree contains information about the devices on the system. The PnP manager creates a subkey for each device, with a name in the form ofHKLM\SYSTEM\CurrentControlSet\Enum\Enumerator\deviceID. Under each of these keys is a subkey for each device instance present on the system. This subkey, which is known as the device'shardware key (or, device key), has information such as the device description, hardware IDs, compatible IDs, and resource requirements.

The Enum tree is reserved for use by operating system components, and its layout is subject to change. Drivers and user-modeDevice Installation Components must use system-supplied functions, such asIoGetDeviceProperty andSetupDiGetDeviceRegistryProperty, to extract information from this tree. Drivers and Windows applications must not access theEnum tree directly. You can view the Enum tree directly by using Registry Editor when you debug drivers.

 

 

原创粉丝点击