github.com/hspan/go-ole@v0.0.0/iconnectionpointcontainer_windows.go (about) 1 // +build windows 2 3 package ole 4 5 import ( 6 "syscall" 7 "unsafe" 8 ) 9 10 func (v *IConnectionPointContainer) EnumConnectionPoints(points interface{}) error { 11 return NewError(E_NOTIMPL) 12 } 13 14 func (v *IConnectionPointContainer) FindConnectionPoint(iid *GUID, point **IConnectionPoint) (err error) { 15 hr, _, _ := syscall.Syscall( 16 v.VTable().FindConnectionPoint, 17 3, 18 uintptr(unsafe.Pointer(v)), 19 uintptr(unsafe.Pointer(iid)), 20 uintptr(unsafe.Pointer(point))) 21 if hr != 0 { 22 err = NewError(hr) 23 } 24 return 25 }