DEVPKEY_DeviceClass_Security

DEVPKEY_DeviceClass_Security设备属性表示 设备安装类的安全描述符结构。

Attribute

属性键

DEVPKEY_DeviceClass_Security

Property-data-type identifier

DEVPROP_TYPE_SECURITY_DESCRIPTOR

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

相应的 SPCRP_Xxx标识符

SPCRP_SECURITY

本地化?

备注

可以在安装应用程序安装设备安装程序类期间或之后设置 DEVPKEY_DeviceClass_Security 的值。 有关如何设置此属性的详细信息,请参阅 创建安全设备安装

可以通过调用 CM_Get_Class_Property 或 SetupDiGetClassProperty 来检索 DEVPKEY_DeviceClass_Security 的值。 可以通过调用 CM_Set_Class_Property 或 SetupDiSetClassProperty 来设置DEVPKEY_DeviceClass_Security

Windows Server 2003 和 Windows XP 支持此属性,但不支持DEVPKEY_DeviceClass_Security属性键。 在这些早期版本的 Windows 上,可以使用SPCRP_SECURITY标识符来访问此属性的值。 有关如何访问此属性的值的信息,请参阅 检索设备安装程序类SPCRP_Xxx属性设置设备安装程序类SPCRP_Xxx属性

要求

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

另请参阅

SetupDiGetClassProperty

SetupDiSetClassProperty