supportedLanguages property

Pointer<COMObject> supportedLanguages

Implementation

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

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

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

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