pythoncom.CoCreateInstance

PyIUnknown = CoCreateInstance(clsid, unkOuter , context , iid )

Create a new instance of an OLE automation server.

Parameters

clsid : PyIID

Class identifier (CLSID) of the object

unkOuter : PyIUnknown

The outer unknown, or None

context : int

The create context for the object, combination of pythoncom.CLSCTX_* flags

iid : PyIID

The IID required from the object