Muokkaa

Jaa


DEVPKEY_DeviceClass_DevType

The DEVPKEY_DeviceClass_DevType device property represents the default device type for a device setup class.

Attribute Value

Property key

DEVPKEY_DeviceClass_DevType

Property-data-type identifier

DEVPROP_TYPE_UINT32

Property access

Read-only access by installation applications and installers after a device setup class is installed

Corresponding SPCRP_Xxx identifier

SPCRP_DEVTYPE

Localized?

No

Remarks

You can set the value of DEVPKEY_DeviceClass_DevType when an installation application installs a device setup class. For information about how to install a device setup class and setting this property, see INF ClassInstall32 Section and the information about the registry entry value DeviceType that is provided in the "Special value-entry-name Keywords" section of INF AddReg Directive.

The value of DEVPKEY_DeviceClass_DevType is one of the FILE_DEVICE_Xxx values that are defined in Wdm.h and Ntddk.h. For more information about device types, see the DeviceType parameter of the IoCreateDevice function.

You can call CM_Get_Class_Property or SetupDiGetClassProperty to retrieve the value of DEVPKEY_DeviceClass_DevType.

Windows Server 2003 and Windows XP support this property, but do not support the DEVPKEY_DeviceClass_DevType property key. On these earlier versions of Windows, you can use the SPCRP_DEVTYPE identifier to access the value of this property. For information about how to access the value of this property, see Retrieving Device Setup Class SPCRP_Xxx Properties.

Requirements

Version: Windows Vista and later versions of Windows Header: Devpkey.h (include Devpkey.h)

See also

IoCreateDevice

INF AddReg Directive

INF ClassInstall32 Section

SetupDiGetClassProperty