1package ole 2 3import "unsafe" 4 5type IConnectionPoint struct { 6 IUnknown 7} 8 9type IConnectionPointVtbl struct { 10 IUnknownVtbl 11 GetConnectionInterface uintptr 12 GetConnectionPointContainer uintptr 13 Advise uintptr 14 Unadvise uintptr 15 EnumConnections uintptr 16} 17 18func (v *IConnectionPoint) VTable() *IConnectionPointVtbl { 19 return (*IConnectionPointVtbl)(unsafe.Pointer(v.RawVTable)) 20} 21