This is the counterpart article to What’s the difference between UuidFromString, IIDFromString, CLSIDFromString, GUIDFromString….
Here’s the table:
Function | Output | |
---|---|---|
Buffer management | Character set support | |
UuidÂToÂString |
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | |
Free with RpcÂStringÂFree |
ANSI and Unicode | |
StringÂFromÂIID |
{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} | |
Free with CoÂTaskÂMemÂFree |
Unicode only | |
StringÂFromÂCLSID |
{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} | |
Free with CoÂTaskÂMemÂFree |
Unicode only | |
StringÂFromÂGUID2 |
{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} | |
Provided by caller | Unicode only |
Since the size of a stringized GUID
/UUID
/IID
is fixed, StringÂFromÂGUID2
is probably the most convenient function to use, since you can just have it generate the string into its final destination.
What’s the difference between
and
?
(The atom feed contains a leading newline, which makes the XML invalid.)
(Edit: Since fixed, thank you!)