textContainer property

Pointer<COMObject> textContainer

Implementation

Pointer<COMObject> get textContainer {
  final retValuePtr = calloc<COMObject>();

  final hr = (ptr.ref.vtable + 3)
      .cast<
          Pointer<
              NativeFunction<
                  Int32 Function(Pointer, Pointer<COMObject> container)>>>()
      .value
      .asFunction<
          int Function(Pointer,
              Pointer<COMObject> container)>()(ptr.ref.lpVtbl, retValuePtr);

  if (FAILED(hr)) {
    free(retValuePtr);
    throw WindowsException(hr);
  }

  return retValuePtr;
}