getPoint method
Implementation
Point getPoint() {
final value = calloc<NativePoint>();
try {
final hr = ptr.ref.vtable
.elementAt(23)
.cast<
Pointer<
NativeFunction<
HRESULT Function(
VTablePointer lpVtbl, Pointer<NativePoint> value)>>>()
.value
.asFunction<
int Function(VTablePointer lpVtbl,
Pointer<NativePoint> value)>()(ptr.ref.lpVtbl, value);
if (FAILED(hr)) throwWindowsException(hr);
return value.toDart();
} finally {
free(value);
}
}