Export (0) Print
Expand All

UCOMITypeInfo.CreateInstance Method

Creates a new instance of a type that describes a component class (coclass).

[Visual Basic]
Sub CreateInstance( _
   ByVal pUnkOuter As Object, _
   ByRef riid As Guid, _
   <Out()> ByRef ppvObj As Object _
)
[C#]
void CreateInstance(
   object pUnkOuter,
   ref Guid riid,
   out object ppvObj
);
[C++]
void CreateInstance(
   Object* pUnkOuter,
 Guid* riid,
   [
   Out
] Object** ppvObj
);
[JScript]
function CreateInstance(
   pUnkOuter : Object,
 riid : Guid,
 ppvObj : Object
);

Parameters

pUnkOuter
Object which acts as the controlling IUnknown.
riid
The IID of the interface that the caller will use to communicate with the resulting object.
ppvObj
On successful return, a reference to the created object.

Remarks

For additional information about ITypeInfo::CreateInstance, see the MSDN Library.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

UCOMITypeInfo Interface | UCOMITypeInfo Members | System.Runtime.InteropServices Namespace

Show:
© 2015 Microsoft