<s> from ctypes import * <EOL> from comtypes import IUnknown , COMMETHOD , GUID , HRESULT , dispid <EOL> _GUID = GUID <EOL> class tagCONNECTDATA ( Structure ) : <EOL> _fields_ = [ <EOL> ( '<STR_LIT>' , POINTER ( IUnknown ) ) , <EOL> ( '<STR_LIT>' , c_ulong ) , <EOL> ] <EOL> CONNECTDATA = tagCONNECTDATA <EOL> class IConnectionPointContainer ( IUnknown ) : <EOL> _iid_ = GUID ( '<STR_LIT>' ) <EOL> _idlflags_ = [ ] <EOL> class IConnectionPoint ( IUnknown ) : <EOL> _iid_ = GUID ( '<STR_LIT>' ) <EOL> _idlflags_ = [ ] <EOL> class IEnumConnections ( IUnknown ) : <EOL> _iid_ = GUID ( '<STR_LIT>' ) <EOL> _idlflags_ = [ ] <EOL> def __iter__ ( self ) : <EOL> return self <EOL> def next ( self ) : <EOL> cp , fetched = self . Next ( <NUM_LIT:1> ) <EOL> if fetched == <NUM_LIT:0> : <EOL> raise StopIteration <EOL> return cp <EOL> class IEnumConnectionPoints ( IUnknown ) : <EOL> _iid_ = GUID ( '<STR_LIT>' ) <EOL> _idlflags_ = [ ] <EOL> def __iter__ ( self ) : <EOL> return self <EOL> def next ( self ) : <EOL> cp , fetched = self . Next ( <NUM_LIT:1> ) <EOL> if fetched == <NUM_LIT:0> : <EOL> raise StopIteration <EOL> return cp <EOL> IConnectionPointContainer . _methods_ = [ <EOL> COMMETHOD ( [ ] , HRESULT , '<STR_LIT>' , <EOL> ( [ '<STR_LIT>' ] , POINTER ( POINTER ( IEnumConnectionPoints ) ) , '<STR_LIT>' ) ) , <EOL> COMMETHOD ( [ ] , HRESULT , '<STR_LIT>' , <EOL> ( [ '<STR_LIT>' ] , POINTER ( _GUID ) , '<STR_LIT>' ) , <EOL> ( [ '<STR_LIT>' ] , POINTER ( POINTER ( IConnectionPoint ) ) , '<STR_LIT>' ) ) , <EOL> ] <EOL> IConnectionPoint . _methods_ = [ <EOL> COMMETHOD ( [ ] , HRESULT , '<STR_LIT>' , <EOL> ( [ '<STR_LIT>' ] , POINTER ( _GUID ) , '<STR_LIT>' ) ) , <EOL> COMMETHOD ( [ ] , HRESULT , '<STR_LIT>' , <EOL> ( [ '<STR_LIT>' ] , POINTER ( POINTER ( IConnectionPointContainer ) ) , '<STR_LIT>' ) ) , <EOL> COMMETHOD ( [ ] , HRESULT , '<STR_LIT>' , <EOL> ( [ '<STR_LIT>' ] , POINTER ( IUnknown ) , '<STR_LIT>' ) , <EOL> ( [ '<STR_LIT>' ] , POINTER ( c_ulong ) , '<STR_LIT>' ) ) , <EOL> COMMETHOD ( [ ] , HRESULT , '<STR_LIT>' , <EOL> ( [ '<STR_LIT>' ] , c_ulong , '<STR_LIT>' ) ) , <EOL> COMMETHOD ( [ ] , HRESULT , '<STR_LIT>' , <EOL> ( [ '<STR_LIT>' ] , POINTER ( POINTER ( IEnumConnections ) ) , '<STR_LIT>' ) ) , <EOL> ] <EOL> IEnumConnections . _methods_ = [ <EOL> COMMETHOD ( [ ] , HRESULT , '<STR_LIT>' , <EOL> ( [ '<STR_LIT>' ] , c_ulong , '<STR_LIT>' ) , <EOL> ( [ '<STR_LIT>' ] , POINTER ( tagCONNECTDATA ) , '<STR_LIT>' ) , <EOL> ( [ '<STR_LIT>' ] , POINTER ( c_ulong ) , '<STR_LIT>' ) ) , <EOL> COMMETHOD ( [ ] , HRESULT , '<STR_LIT>' , <EOL> ( [ '<STR_LIT>' ] , c_ulong , '<STR_LIT>' ) ) , <EOL> COMMETHOD ( [ ] , HRESULT , '<STR_LIT>' ) , <EOL> COMMETHOD ( [ ] , HRESULT , '<STR_LIT>' , <EOL> ( [ '<STR_LIT>' ] , POINTER ( POINTER ( IEnumConnections ) ) , '<STR_LIT>' ) ) , <EOL> ] <EOL> IEnumConnectionPoints . _methods_ = [ <EOL> COMMETHOD ( [ ] , HRESULT , '<STR_LIT>' , <EOL> ( [ '<STR_LIT>' ] , c_ulong , '<STR_LIT>' ) , <EOL> ( [ '<STR_LIT>' ] , POINTER ( POINTER ( IConnectionPoint ) ) , '<STR_LIT>' ) , <EOL> ( [ '<STR_LIT>' ] , POINTER ( c_ulong ) , '<STR_LIT>' ) ) , <EOL> COMMETHOD ( [ ] , HRESULT , '<STR_LIT>' , <EOL> ( [ '<STR_LIT>' ] , c_ulong , '<STR_LIT>' ) ) , <EOL> COMMETHOD ( [ ] , HRESULT , '<STR_LIT>' ) , <EOL> COMMETHOD ( [ ] , HRESULT , '<STR_LIT>' , <EOL> ( [ '<STR_LIT>' ] , POINTER ( POINTER ( IEnumConnectionPoints ) ) , '<STR_LIT>' ) ) , <EOL> ] </s>
