iconnectionpointcontainer_windows.go 502 B

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