StringFromGUID2 function (combaseapi.h)
Converts a globally unique identifier (GUID) into a string of printable characters.
int StringFromGUID2( [in] REFGUID rguid, [out] LPOLESTR lpsz, [in] int cchMax );
The GUID to be converted.
A pointer to a caller-allocated string variable to receive the resulting string. The string that represents rguid includes enclosing braces.
The number of characters available in the lpsz buffer.
If the function succeeds, the return value is the number of characters in the returned string, including the null terminator. If the buffer is too small to contain the string, the return value is 0.
|Minimum supported client||Windows 2000 Professional [desktop apps | UWP apps]|
|Minimum supported server||Windows 2000 Server [desktop apps | UWP apps]|
|Header||combaseapi.h (include Objbase.h)|