The SetupDiGetClassDescriptionEx function retrieves the description of a setup class installed on a local or remote machine.
WINSETUPAPI BOOL WINAPI
SetupDiGetClassDescriptionEx(
IN LPGUID ClassGuid,
OUT PTSTR ClassDescription,
IN DWORD ClassDescriptionSize,
OUT PDWORD RequiredSize, OPTIONAL
IN PCTSTR MachineName, OPTIONAL
IN PVOID Reserved
);
The function returns TRUE if it is successful. Otherwise, it returns FALSE and the logged error can be retrieved with a call to GetLastError.
Declared in setupapi.h. Include setupapi.h.
If there is a friendly name in the registry key for the class, this routine returns the friendly name. Otherwise, this routine returns the class name.
SetupDiBuildClassInfoList, SetupDiBuildClassInfoListEx, SetupDiGetDeviceInfoListDetail, SetupDiGetINFClass