treeScope property

int get treeScope

Implementation

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

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

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

    final retValue = retValuePtr.value;
    return retValue;
  } finally {
    free(retValuePtr);
  }
}
set treeScope (int value)

Implementation

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

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