Accessing the Friendly Name and Class Name of a Device Setup Class
In Windows Vista and later versions of Windows, the unified device property model includes device setup class properties that represent the friendly name and class name of a device setup class. The unified device property model uses the DEVPKEY_DeviceClass_Name property key and the DEVPKEY_DeviceClass_ClassName property key to represent these properties.
Windows Server 2003, Windows XP, and Windows 2000 also support these device setup class properties. However, these earlier versions of Windows do not support the property keys of the unified device property model. Instead, these versions of Windows use the following mechanisms to retrieve the corresponding property information:
Call SetupDiGetClassDescription to retrieve the friendly name of a device setup class.
Call SetupDiClassNameFromGuid to retrieve the class name of a device setup class.
To maintain compatibility with these earlier versions of Windows, Windows Vista and later versions also support these mechanisms to access the friendly name and class name of a device setup class. However, you should use the property keys to access these properties in Windows Vista and later versions.