HardwareID 注册表子项

Beginning with Windows 7, the HardwareID registry subkey specifies a removable device capability override for a device installed in the computer. 有关可移动设备功能替代的详细信息,请参阅 DeviceOverrides 注册表项

The name of the HardwareID registry subkey specifies the hardware ID of the device, and is formatted based on the requirements described below.

The following table defines the format and requirements of the HardwareID registry subkey.

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

Valid hardware ID value

Required

必须包含硬件 ID 的总线前缀。

硬件 ID 中的所有斜杠 () 路径分隔符都必须替换为数字 (#) 字符。

DeviceOverrides

硬件 ID 值必须遵循下表中所述的格式要求。 Each HardwareID subkey must contain either the LocationPaths or ChildLocationPaths subkeys. Both subkeys could be specified within the HardwareID subkey if necessary.

Because the slash character is not a valid character in a registry subkey name, you must replace it with the number character when specifying a bus prefix for the HardwareID registry subkey name. For example, if a removable device capability override is specified for the device node (devnode) with a hardware ID of USB\VID_1234&PID_ABCD&REV_0001, you must create a HardwareID registry subkey with a name of USB#VID_1234&PID_ABCD&REV_0001.