DeviceOverrides 注册表项

Beginning with Windows 7, the DeviceOverrides registry key specifies that one or more removable device capability overrides exist in the system. 有关可移动设备功能的详细信息,请参阅 “可移动设备功能概述”。

The Plug and Play (PnP) manager uses a new ID (container IDs) to group one or more device nodes (devnodes) that originated from and belong to each instance of a particular physical device installed in the computer. 对于旧设备,PnP 管理器通过可移动设备功能生成容器 ID。 有关 PnP 管理器如何生成容器 ID 的详细信息,请参阅 如何生成容器 ID

可移动设备功能替代允许独立硬件供应商(IHV)或原始设备制造商(OEM)更改开发节点或开发节点组中可移动设备功能的解释值。

Removable device capability overrides through the DeviceOverrides registry key are useful for legacy devices or third-party hardware components that may not report the removable device capability correctly. 这会导致 PnP 管理器错误地生成容器 ID,用于对从物理设备枚举的 devnode 进行分组。

这些替代实际上不会更改开发节点报告的可移动设备功能的全局状态。 Instead, these overrides cause the PnP manager to ignore the reported device capability and use the registry-based setting when generating a container ID for devnodes that match an override. DeviceOverrides 注册表子项下的其他子项提供有关要替代哪些 devnode 的更多详细信息。

The following table defines the DeviceOverrides registry key's format and requirements.

注册表项名称 Required/optional Format requirements Parent key Child subkeys

DeviceOverrides

Optional

None

None

HardwareID or CompatibleID

Each removable device capability override is specified through either the HardwareID or ContainerID registry subkeys.

The DeviceOverrides registry key is created and maintained under the HKLM\SYSTEM\CurrentControlSet\Control registry tree. 在此注册表项中,将创建或维护一个或多个可移动设备功能替代。

Removable device capability overrides are specific to individual devices specified through either the HardwareID or CompatibleID registry subkeys. 其他子项定义为指定设备枚举的 devnode 的路径。 通常,应使用最具体的设备硬件 ID 来标识设备,而不是不太具体的硬件或兼容的 ID。 这可确保可移动设备功能替代不会应用于与预期目标设备共享相同硬件或兼容 ID 的任何意外设备。

The following figure shows the topology of the DeviceOverrides registry key and its related subkeys.

说明 deviceoverrides 注册表项拓扑的关系图。

The DeviceOverrides registry key must be created for the first removable device capability override that is added to the system. 默认情况下,在干净作系统安装上可能不存在它。

Note The existence of a removable device capability registry override does not change the global state of the removable device capability on a devnode.