Export (0) Print
Expand All
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.


Windows Mobile 6.5
A version of this page is also available for

This function converts a globally unique identifier (GUID) into a string of printable characters.

  REFGUID rguid, 
  LPOLESTR lpsz, 
  int cbMax


[in] Interface identifier to be converted.


[out] Long pointer to the resulting null-terminated string on return.


[in] Character count of the string indicated by lpsz.

Nonzero indicates the number of characters in the returned string, including the terminating null character. Zero indicates that the buffer is too small for returned string.

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.

Windows Embedded CEWindows CE 2.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

© 2014 Microsoft