handPreference property

HandPreference get handPreference

Implementation

HandPreference get handPreference {
  final retValuePtr = calloc<Int32>();

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

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

    return HandPreference.from(retValuePtr.value);
  } finally {
    free(retValuePtr);
  }
}