DEVPKEY_Device_RemovalPolicyDefault
The DEVPKEY_Device_RemovalPolicyDefault device property represents the default removal policy for a device instance.
Attribute | Value |
---|---|
Property key |
DEVPKEY_Device_RemovalPolicyDefault |
Property-data-type identifier |
|
Property access |
Read-only access by installation applications and installers |
Corresponding SPDRP_Xxx identifier |
SPDRP_REMOVAL_POLICY_HW_DEFAULT |
Localized? |
No |
Remarks
Windows sets the value of DEVPKEY_Device_RemovalPolicyDefault to one of the CM_REMOVAL_POLICY_Xxx values that are defined in Cfgmgr32.h.
You can call CM_Get_DevNode_Property or SetupDiGetDeviceProperty to retrieve the value of DEVPKEY_Device_RemovalPolicyDefault.
Windows Server 2003 and Windows XP support this property, but do not support the DEVPKEY_Device_RemovalPolicyDefault property key. Instead, you can use the corresponding SPDRP_REMOVAL_POLICY_HW_DEFAULT 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)