This function converts a globally unique identifier (GUID) into a string of printable characters.
The string that the lpsz parameter receives has a format like that of the following sample:
where the successive fields break the GUID into the form DWORD-WORD-WORD-WORD-WORD.DWORD covering the 128-bit GUID. The string includes enclosing braces. These are an OLE convention.
Passing into this function any invalid and, under some circumstances, NULL pointers result in unexpected termination of the application.
To determine whether the platform supports this function, see Determining Supported COM APIs.