Compare method
Implementation
int Compare(Pointer<COMObject> other) {
final retValuePtr = calloc<Int32>();
try {
final hr = _thisPtr.ref.vtable
.elementAt(93)
.cast<
Pointer<
NativeFunction<
HRESULT Function(Pointer, Pointer<COMObject> other,
Pointer<Int32>)>>>()
.value
.asFunction<
int Function(
Pointer, Pointer<COMObject> other, Pointer<Int32>)>()(
_thisPtr.ref.lpVtbl,
other.cast<Pointer<COMObject>>().value,
retValuePtr);
if (FAILED(hr)) throw WindowsException(hr);
final retValue = retValuePtr.value;
return retValue;
} finally {
free(retValuePtr);
}
}