다음을 통해 공유


StringFromGUID2 (Windows CE 5.0)

Send Feedback

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

StringFromGUID2(REFGUIDrguid,LPOLESTRlpsz,intcbMax);

Parameters

  • rguid
    [in] Interface identifier to be converted.
  • lpsz
    [out] Long pointer to the resulting null-terminated string on return.
  • cbMax
    [in] Character count of the string indicated by lpsz.

Return Values

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.

Remarks

The string that the lpsz parameter receives has a format like that of the following sample:

{c200e360-38c5–11ce-ae62-08002b2b79ef}

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.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Objbase.h.
Link Library: Ole32.lib.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.