DEVPKEY_Device_Address

DEVPKEY_Device_Address设备属性表示设备实例的特定于总线的地址。

Attribute

属性键

DEVPKEY_Device_Address

Property-data-type identifier

DEVPROP_TYPE_INT32

安装应用程序和安装程序的只读访问权限

相应的 SPDRP_Xxx标识符

SPDRP_ADDRESS

本地化?

备注

Windows 将 DEVPKEY_Device_Address 的值设置为其总线上的设备地址。 有关设备地址的解释的信息,请参阅 IoGetDeviceProperty 的 DeviceProperty 参数的 DevicePropertyAddress 值。

可以调用 CM_Get_DevNode_PropertySetupDiGetDeviceProperty 来检索 DEVPKEY_Device_Address 的值。

Windows Server 2003、Windows XP 和 Windows 2000 支持此属性,但不支持DEVPKEY_Device_Address属性键。 相反,你可以使用相应的SPDRP_ADDRESS标识符来访问这些早期版本的 Windows 上的 属性的值。 有关如何在这些早期版本的 Windows 上访问此属性值的信息,请参阅 访问设备实例SPDRP_Xxx属性

要求

版本:Windows Vista 和更高版本的 Windows 标头:Devpkey.h (包括 Devpkey.h)

另请参阅

IoGetDeviceProperty

SetupDiGetDeviceProperty