automationElementMode property

int automationElementMode

Implementation

int get automationElementMode {
  final retValuePtr = calloc<Int32>();

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

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

    final retValue = retValuePtr.value;
    return retValue;
  } finally {
    free(retValuePtr);
  }
}
void automationElementMode=(int value)

Implementation

set automationElementMode(int value) {
  final hr = (ptr.ref.vtable + 11)
      .cast<Pointer<NativeFunction<Int32 Function(Pointer, Int32 mode)>>>()
      .value
      .asFunction<int Function(Pointer, int mode)>()(ptr.ref.lpVtbl, value);

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