Export (0) Print
Expand All
COM
Expand Minimize
3 out of 7 rated this helpful - Rate this topic

StringFromGUID2 function

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

Syntax


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. The string that represents rguid includes enclosing braces.

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.

Remarks

Windows Phone 8: This API is supported.

Windows Phone 8.1: This API is supported.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

Objbase.h

Library

Ole32.lib

DLL

Ole32.dll

See also

StringFromCLSID

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.