DEVPKEY_DeviceClass_Icon

The DEVPKEY_DeviceClass_Icon device property represents the icon for a device setup class.

Attribute Value

Property key

DEVPKEY_DeviceClass_Icon

Property-data-type identifier

DEVPROP_TYPE_STRING

Property access

Read-only access by installation applications and installers

Localized?

No

Remarks

The value of DEVPKEY_DeviceClass_Icon is set by an INF AddReg directive that is included in the INF ClassInstall32 section that installs the class. To set the value of DEVPKEY_DeviceClass_Icon, use an AddReg directive to set the Icon registry entry value for the class.

The Icon entry value is an integer number in string format. If the number is negative, the absolute value of the number is the resource identifier of the icon in setupapi.dll. If the number is positive, the number is the resource identifier of the icon in the class installer DLL, if there is a class installer, or the class property page provider, if there is no class installer and there is a property page provider. A value of zero is not valid.

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

Windows Server 2003, Windows XP, and Windows 2000 support this property, but do not support the DEVPKEY_DeviceClass_Icon property key. For information about how to access the mini-icon for a device setup class on Windows Server 2003, Windows XP, and Windows 2000, see Accessing Icon Properties of a Device Setup Class.

Requirements

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

See also

INF AddReg Directive

INF ClassInstall32 Section

SetupDiGetClassProperty

SetupDiDrawMiniIcon

SetupDiLoadClassIcon