pythoncom.CoRegisterClassObject
int = CoRegisterClassObject(iid, factory
, context
, flags
)
Registers an EXE class object with OLE so other applications can
connect to it.
Parameters
iid : PyIID
The IID of the object to registerfactory : PyIUnknown
The class factory object. It is the Python programmers
responsibility to ensure this object remains alive until the class is unregistered.context : int
The create context for the server. Must be a combination of the CLSCTX_*
flags.flags : int
Create flags.Comments
The class factory object should be PyIClassFactory object, but as per the COM documentation, only PyIUnknown is checked.
Return Value
The result is a handle which should be revoked using pythoncom::CoRevokeClassObject