DEVPKEY_Device_Security

DEVPKEY_Device_Security设备属性表示设备实例的安全描述符结构。

Attribute

属性键

DEVPKEY_Device_Security

Property-data-type identifier

DEVPROP_TYPE_SECURITY_DESCRIPTOR

安装应用程序和安装程序的读取和写入访问权限

相应的 SPDRP_Xxx标识符

SPDRP_SECURITY

本地化?

备注

可以使用 INFDDInstall 中包含的 INF AddReg 指令设置 DEVPKEY_Device_Security 的值。安装设备的 INF 文件的 HW 部分。

可以通过调用 SetupDiGetDeviceProperty 检索DEVPKEY_Device_Security的值,也可以通过调用 SetupDiSetDeviceProperty 来设置此属性。

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

要求

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

另请参阅

INF AddReg 指令

INF DDInstall。HW 部分

SetupDiGetDeviceProperty

SetupDiSetDeviceProperty