DEVPKEY_Device_DevType

The DEVPKEY_Device_DevType device property represents the device type of a device instance.

Attribute Value

Property key

DEVPKEY_Device_DevType

Property-data-type identifier

DEVPROP_TYPE_INT32

Property access

Read-only access by installation applications and installers

Corresponding SPDRP_Xxx identifier

SPDRP_DEVTYPE

Localized?

No

Remarks

Windows sets the value of DEVPKEY_Device_DevType to the value of the DeviceType member of the DEVICE_OBJECT structure for a device instance. The value of DEVPKEY_Device_DevType is one of the system-defined device type values that are listed in Specifying Device Types.

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

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

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

INF DDInstall.HW section

SetupDiGetDeviceProperty