getSize method
Implementation
Size getSize() {
final retValuePtr = calloc<Size>();
final hr = ptr.ref.vtable
.elementAt(6)
.cast<
Pointer<NativeFunction<HRESULT Function(Pointer, Pointer<Size>)>>>()
.value
.asFunction<
int Function(
Pointer, Pointer<Size>)>()(ptr.ref.lpVtbl, retValuePtr);
if (FAILED(hr)) throw WindowsException(hr);
return retValuePtr.ref;
}