DEVPKEY_Device_Security
The DEVPKEY_Device_Security device property represents a security descriptor structure for a device instance.
Attribute | Value |
---|---|
Property key |
DEVPKEY_Device_Security |
Property-data-type identifier |
|
Property access |
Read and write access by installation applications and installers |
Corresponding SPDRP_Xxx identifier |
SPDRP_SECURITY |
Localized? |
No |
Remarks
You can set the value of DEVPKEY_Device_Security by using an INF AddReg directive that is included in the INF DDInstall.HW section of the INF file that installs a device.
You can retrieve the value of DEVPKEY_Device_Security by calling SetupDiGetDeviceProperty or you can set this property by calling SetupDiSetDeviceProperty.
Windows Server 2003, Windows XP, and Windows 2000 support this property, but do not support the DEVPKEY_Device_Security property key. Instead, you can use the corresponding SPDRP_SECURITY identifier to access the value of the property on these earlier versions of Windows. For information about how to access this property value on these earlier versions of Windows, see Accessing Device Instance SPDRP_Xxx Properties.
Requirements
Version: Windows Vista and later versions of Windows Header: Devpkey.h (include Devpkey.h)