SetupDiClassNameFromGuid

BOOLEAN
    SetupDiClassNameFromGuid(
        IN LPGUID  ClassGuid,
        OUT PTSTR  ClassName,
        IN DWORD  ClassNameSize,
        OUT PDWORD  RequiredSize    /* optional */
        );

SetupDiClassNameFromGuid retrieves the class name associated with the class GUID.

Parameters
ClassGuid
Supplies the class GUID of the class name to retrieve.
ClassName
Receives the name of the class for the specified GUID.
ClassNameSize
Supplies the size, in characters, of the ClassName buffer.
RequiredSize
Receives the number of characters required to store the class name (including terminating NULL). RequiredSize is always less than MAX_CLASS_NAME_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

SetupDiClassGuidsFromName