PyIClassFactory.CreateInstance

PyIUnknown = CreateInstance(outerUnknown, iid )

Creates an uninitialized object.

Parameters

outerUnknown : PyIUnknown

Usually None, otherwise the outer unknown if the object is being created as part of an aggregate.

iid : PyIID

The IID of the resultant object.

Return Value

The result object will always be derived from PyIUnknown, but will be of the type specified by iid.