getBoolean method
Implementation
bool getBoolean() {
final retValuePtr = calloc<Bool>();
try {
final hr = ptr.ref.vtable
.elementAt(10)
.cast<
Pointer<
NativeFunction<HRESULT Function(Pointer, Pointer<Bool>)>>>()
.value
.asFunction<
int Function(
Pointer, Pointer<Bool>)>()(ptr.ref.lpVtbl, retValuePtr);
if (FAILED(hr)) throw WindowsException(hr);
final retValue = retValuePtr.value;
return retValue;
} finally {
free(retValuePtr);
}
}