getPoint method

Point getPoint()

Implementation

Point getPoint() {
  final retValuePtr = calloc<Point>();

  try {
    final hr = ptr.ref.vtable
        .elementAt(23)
        .cast<
            Pointer<
                NativeFunction<HRESULT Function(Pointer, Pointer<Point>)>>>()
        .value
        .asFunction<
            int Function(
                Pointer, Pointer<Point>)>()(ptr.ref.lpVtbl, retValuePtr);

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

    final retValue = retValuePtr.ref;
    return retValue;
  } finally {}
}