1 out of 4 rated this helpful - Rate this topic

StringFromCLSID function

Applies to: desktop apps | Metro style apps

Converts a CLSID into a string of printable characters. Different CLSIDs always convert to different strings.

Syntax

HRESULT StringFromCLSID(
  __in   REFCLSID rclsid,
  __out  LPOLESTR *lplpsz
);

Parameters

rclsid [in]

The CLSID to be converted.

lplpsz [out]

The address of a pointer variable that receives a pointer to the resulting string. The string that represents rclsid includes enclosing braces.

Return value

This function can return the standard return values E_OUTOFMEMORY and S_OK.

Remarks

StringFromCLSID calls the StringFromGUID2 function to convert a globally unique identifier (GUID) into a string of printable characters.

The caller is responsible for freeing the memory allocated for the string by calling the CoTaskMemFree function.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Objbase.h

Library

Ole32.lib

DLL

Ole32.dll

See also

CLSIDFromString
StringFromGUID2

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ