IsEqual method

bool IsEqual(
  1. Pointer<COMObject> hostName
)

Implementation

bool IsEqual(Pointer<COMObject> hostName) {
  final retValuePtr = calloc<Bool>();

  try {
    final hr = _thisPtr.ref.vtable
            .elementAt(11)
            .cast<
                Pointer<
                    NativeFunction<
                        HRESULT Function(Pointer, Pointer<COMObject> hostName,
                            Pointer<Bool>)>>>()
            .value
            .asFunction<
                int Function(
                    Pointer, Pointer<COMObject> hostName, Pointer<Bool>)>()(
        _thisPtr.ref.lpVtbl,
        hostName.cast<Pointer<COMObject>>().value,
        retValuePtr);

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

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