COM
Expand Minimize
2 out of 4 rated this helpful - Rate this topic

IIDFromString function

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

Syntax


HRESULT IIDFromString(
  _In_   LPCOLESTR lpsz,
  _Out_  LPIID lpiid
);

Parameters

lpsz [in]

A pointer to the string representation of the IID.

lpiid [out]

A pointer to the requested IID on return.

Return value

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

Remarks

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

Windows Phone 8: 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

StringFromIID

 

 

Send comments about this topic to Microsoft

Build date: 10/27/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.