I would use UuidFromString
- the documentation for CLSIDFromString
explicitly states that it's purpose is to convert strings generated by StringFromCLSID
back into a CLSID
.
Even if the behavior of the two functions is identical (and I suspect it may not be - consider, for example, that CLSIDFromString
can return REGDB_E_CLASSNOTREG
indicating the class isn't registered or REGDB_E_READREGDB
which indicates a registry I/O error) it's good practice to distinguish between a CLSID
and your own internal GUID
objects.