Expand Minimize

StringFromIID function

Converts an interface identifier into a string of printable characters.

Syntax


HRESULT StringFromIID(
  _In_   REFIID rclsid,
  _Out_  LPOLESTR *lplpsz
);

Parameters

rclsid [in]

The interface identifier 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

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

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

IIDFromString

 

 

Community Additions

ADD
Show:
© 2014 Microsoft