getBoolean method
Implementation
bool getBoolean() {
final value = calloc<Bool>();
try {
final hr = ptr.ref.vtable
.elementAt(18)
.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);
}
}