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 | |
UuidToString |
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | |
Free with RpcStringFree |
ANSI and Unicode | |
StringFromIID |
{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} | |
Free with CoTaskMemFree |
Unicode only | |
StringFromCLSID |
{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} | |
Free with CoTaskMemFree |
Unicode only | |
StringFromGUID2 |
{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} | |
| Provided by caller | Unicode only | |
Since the size of a stringized GUID/UUID/IID is fixed, StringFromGUID2 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!)