rawViewCondition property

Pointer<COMObject> get rawViewCondition

Implementation

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

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

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

  return retValuePtr;
}