currentControllerFor property
Implementation
Pointer<COMObject> get currentControllerFor {
final retValuePtr = calloc<COMObject>();
final hr = (ptr.ref.vtable + 48)
.cast<
Pointer<
NativeFunction<Int32 Function(Pointer, Pointer<COMObject> retVal)>
>
>()
.value
.asFunction<
int Function(Pointer, Pointer<COMObject> retVal)
>()(ptr.ref.lpVtbl, retValuePtr);
if (FAILED(hr)) {
free(retValuePtr);
throw WindowsException(hr);
}
return retValuePtr;
}