getPoint method
Implementation
Point getPoint() {
final retValuePtr = calloc<Point>();
final hr = ptr.ref.vtable
.elementAt(6)
.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);
return retValuePtr.ref;
}