pythoncom.CoGetObjectContext

PyIContext = CoGetObjectContext(riid)

Creates an interface to interact with the context of the current object

Parameters

riid=IID_IContext : PyIID

The interface to return

Comments

Requires Win2k or later

COM applications can use this function to create IComThreadingInfo, IContext, or IContextCallback COM+ applications may also create IObjectContext, IObjectContextInfo, IObjectContextActivity, or IContextState