pythoncom.CoTreatAsClass

CoTreatAsClass(clsidold, clsidnew)

Establishes or removes an emulation, in which objects of one class are treated as objects of a different class.

Parameters

clsidold : PyIID

CLSID of the object to be emulated.

clsidnew=CLSID_NULL : PyIID

CLSID of the object that should emulate the original object. This replaces any existing emulation for clsidOld. Can be ommitted or CLSID_NULL, in which case any existing emulation for clsidOld is removed.