IIDFromString function

Expand
2 out of 3 rated this helpful - Rate this topic

IIDFromString function

Applies to: desktop apps | Metro style apps

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.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Objbase.h

Library

Ole32.lib

DLL

Ole32.dll

See also

StringFromIID

 

 

Send comments about this topic to Microsoft

Build date: 5/5/2012

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD
GUIDFromString?
Can someone please verify that this function can be used to convert to GUID type.
6/19/2011
The expected string format
Please someone from MICROSOFT check what format is this function expecting.
I am assuming that

{c200e360-38c5-11ce-ae62-08002b2b79ef}

is ok, but it would be nice to know for sure.
6/19/2011