DEVPKEY_Device_InstallState

The DEVPKEY_Device_InstallState device property represents the installation state of a device instance.

Attribute Value

Property key

DEVPKEY_Device_InstallState

Property-data-type identifier

DEVPROP_TYPE_UINT32

Property access

Read-only by installation applications and installers

Corresponding SPDRP_Xxx identifier

SPDRP_INSTALL_STATE

Localized?

No

Remarks

Windows sets the value of DEVPKEY_Device_InstallState to one of the CM_INSTALL_STATE_Xxx values that are defined in Cfgmgr32.h. The CM_INSTALL_STATE_Xxx values correspond to the DEVICE_INSTALL_STATE enumeration values.

You can call CM_Get_DevNode_Property or SetupDiGetDeviceProperty to retrieve the value of DEVPKEY_Device_InstallState.

Windows Server 2003 and Windows XP support this property, but do not support the DEVPKEY_Device_InstallState property key. Instead, you can use the corresponding SPDRP_INSTALL_STATE 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)

See also

SetupDiGetDeviceProperty