CopyTo method

void CopyTo(
  1. Pointer<COMObject> other
)

Implementation

void CopyTo(Pointer<COMObject> other) {
  final hr = _thisPtr.ref.vtable
          .elementAt(95)
          .cast<
              Pointer<
                  NativeFunction<
                      HRESULT Function(Pointer, Pointer<COMObject> other)>>>()
          .value
          .asFunction<int Function(Pointer, Pointer<COMObject> other)>()(
      _thisPtr.ref.lpVtbl, other.cast<Pointer<COMObject>>().value);

  if (FAILED(hr)) throw WindowsException(hr);
}