isFramework property

bool get isFramework

Implementation

bool get isFramework {
  final value = calloc<Bool>();

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

    if (FAILED(hr)) throwWindowsException(hr);

    return value.value;
  } finally {
    free(value);
  }
}