Export (0) Print
Expand All
Information
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.

StringFromCLSID

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function converts a class identifier into a string of printable characters. Different class identifiers always convert to different strings.


WINOLEAPI StringFromCLSID(
  REFCLSID rclsid, 
  LPOLESTR* ppsz
); 

rclsid

[in] Class identifier to be converted.

ppsz

[out] Address of LPOLESTR pointer variable that receives a pointer to the resulting null-terminated string.

S_OK indicates that the class identifier was successfully converted and returned. The standard return value E_OUTOFMEMORY is also supported.

The StringFromCLSID function 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 CoTaskMemFree.

Passing into this function any invalid and, under some circumstances, NULL pointers results in unexpected termination of the application.

To determine whether the platform supports this function, see Determining Supported COM APIs.

Headerobjbase.h
Libraryole32.lib
Windows Embedded CEWindows CE 2.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2015 Microsoft