DEVPKEY_Device_Characteristics

The DEVPKEY_Device_Characteristics device property represents the characteristics of a device instance.

Attribute Value

Property key

DEVPKEY_Device_Characteristics

Property-data-type identifier

DEVPROP_TYPE_INT32

Property access

Read-only access by installation applications and installers

Corresponding SPDRP_Xxx identifier

SPDRP_CHARACTERISTICS

Localized?

No

Remarks

The value of DEVPKEY_Device_Characteristics is a bitwise OR of the FILE_Xxx file characteristic flags that are defined in Wdm.h and Ntddk.h. For more information about the device characteristic flags, see the DeviceCharacteristics parameter of IoCreateDevice and Specifying Device Characteristics.

You can set the value of DEVPKEY_Device_Characteristics by using an INF AddReg directive that is included in the INF DDInstall.HW section that installs a device.

You can retrieve the value of DEVPKEY_Device_Characteristics by calling SetupDiGetDeviceProperty.

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

INF AddReg Directive

INF DDInstall.HW Section

IoCreateDevice

SetupDiGetDeviceProperty

SetupDiSetDeviceProperty