Functions


StringFromGUID2 Function

Converts a globally unique identifier (GUID) into a string of printable characters.

Syntax

C++
int StringFromGUID2(
  __in   REFGUID rguid,
  __out  LPOLESTR lpsz,
  __in   int cchMax
);

Parameters

rguid [in]

The GUID to be converted.

lpsz [out]

A pointer to a caller-allocated string variable to receive the resulting string.

cchMax [in]

The number of characters available in the lpsz buffer.

Return Value

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.

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderObjbase.h
LibraryOle32.lib
DLLOle32.dll

See Also

StringFromCLSID

Send comments about this topic to Microsoft

Build date: 11/12/2009

Tags :


Community Content

yecril
Returns the number of characters
Contrary to what the documentation says.
Tags :

Page view tracker