DEVPKEY_Device_ClassGuid

The DEVPKEY_Device_ClassGuid device property represents the GUID of the device setup class that a device instance belongs to.

Attribute Value

Property key

DEVPKEY_Device_ClassGuid

Property-data-type identifier

DEVPROP_TYPE_GUID

Property access

Read-only by installation applications and installers

Corresponding SPDRP_Xxx identifier

SPDRP_CLASSGUID

Localized?

No

Remarks

The value of DEVPKEY_Device_ClassGuid is set by the INF ClassGUID directive that is supplied by the INF Version section of the INF file that installs a device.

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

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

SetupDiGetDeviceProperty