IIDFromString

Converts a string generated by the StringFromIID function back into the original interface identifier (IID).

WINOLEAPI IIDFromString(
  LPOLESTR lpsz,  //Pointer to the string representation of the IID
  LPIID lpiid     //Pointer to the requested IID on return
);
 

Parameters

lpsz
[in] Pointer to the string representation of the IID.
lpiid
[out] Pointer to the requested IID on return.

Return Values

This function supports the standard return values E_INVALIDARG and E_OUTOFMEMORY, as well as the following:

S_OK
The string was successfully converted.

Remarks

The function converts the interface identifier in a way that guarantees different interface identifiers will always be converted to different strings.

QuickInfo

  Windows NT: Use version 3.1 or later.
  Windows: Use Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in objbase.h.
  Import Library: Included as a resource in ole32.dll.

See Also

StringFromIID