Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function converts an interface identifier into a string of printable characters.

Syntax

WINOLEAPI StringFromIID(
  REFIID 
rclsid, 
  LPOLESTR* 
lplpsz
); 

Parameters

rclsid

[in] Interface identifier to be converted.

lplpsz

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

Return Value

S_OK indicates that the character string was successfully returned. The standard return value E_OUTOFMEMORY is also supported.

Remarks

The string returned by the function is freed in the standard way, using the task allocator.

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

Header objbase.h
Library ole32.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later