This function converts a class identifier into a string of printable characters. Different class identifiers always convert to different strings.
The StringFromCLSID function calls the StringFromGUID2 function to convert a globally unique identifier (GUID) into a string of printable characters.
The caller is responsible for freeing the memory allocated for the string by calling CoTaskMemFree.
Passing into this function any invalid and, under some circumstances, NULL pointers results in unexpected termination of the application.
To determine whether the platform supports this function, see Determining Supported COM APIs.