StringFromCLSID

Converts a CLSID into a string of printable characters. Different CLSIDs always convert to different strings.

WINOLEAPI StringFromCLSID(

REFCLSID rclsid,

//CLSID to be converted

LPOLESTR * ppsz

//Indirect pointer to the resulting string on return

);

Parameters

rclsid
[in] CLSID to be converted.
ppsz
[out] Pointer to the resulting string.

Return Values

This function supports the standard return value E_OUTOFMEMORY; as well as the following:

S_OK
Indicates the CLSID was successfully converted and returned.

Remarks

The StringFromCLSID function calls the StringFromGuid2 function to convert a globally unique identifier (GUID) into a string of printable characters.

See Also

CLSIDFromString, StringFromGuid2