DEVPKEY_Device_Capabilities

The DEVPKEY_Device_Capabilities device property represents the capabilities of a device instance.

Attribute Value

Property key

DEVPKEY_Device_Capabilities

Property-data-type identifier

DEVPROP_TYPE_INT32

Property access

Read-only access by installation applications and installers

Corresponding SPDRP_Xxx identifier

SPDRP_CAPABILITIES

Localized?

No

Remarks

Windows sets the value of DEVPKEY_Device_Capabilities to the capability value that the device driver returns in response to an IRP_MN_QUERY_CAPABILITIES request for device capability information. The value of DEVPKEY_Device_Capabilities is a bitwise OR of the CM_DEVCAP_Xxx capability flags that are defined in Cfgmgr32.h. The device capabilities that these flags represent correspond to a subset of the members of the DEVICE_CAPABILITIES structure.

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

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

DEVICE_CAPABILITIES

IRP_MN_QUERY_CAPABILITIES

SetupDiGetDeviceProperty