SetupDiGetClassDescription

BOOLEAN
SetupDiGetClassDescription(
IN LPGUID ClassGuid,
OUT PTSTR ClassDescription,
IN DWORD ClassDescriptionSize,
OUT PDWORD RequiredSize, /* optional */
);

SetupDiGetClassDescription retrieves the class description associated with the specified class GUID.

Parameters

ClassGuid

Supplies the GUID of the class whose description is to be retrieved.

ClassDescription

Supplies a pointer to a character buffer that receives the class description.

ClassDescriptionSize

Supplies the size, in characters, of the ClassDescription buffer.

RequiredSize

Receives the size, in characters, required to store the class description (including terminating NULL). RequiredSize is always less than LINE_LEN.

Return Value

The function returns TRUE if it is successful. Otherwise it returns FALSE and the logged error can be retrieved with a call to GetLastError.

See Also

SetupDiBuildClassInfoList, SetupDiGetINFClass