completed property
Pointer<COMObject>
get
completed
Gets the method that handles the operation completed notification.
Implementation
Pointer<COMObject> get completed {
final retValuePtr = calloc<COMObject>();
final hr = ptr.ref.lpVtbl.value
.elementAt(7)
.cast<
Pointer<
NativeFunction<
HRESULT Function(VTablePointer lpVtbl,
Pointer<COMObject> retValuePtr)>>>()
.value
.asFunction<
int Function(VTablePointer lpVtbl,
Pointer<COMObject> retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr);
if (FAILED(hr)) throwWindowsException(hr);
return retValuePtr;
}
set
completed
(Pointer<COMObject> value)
Sets the method that handles the operation completed notification.
Implementation
set completed(Pointer<COMObject> value) {
final hr = ptr.ref.lpVtbl.value
.elementAt(6)
.cast<
Pointer<
NativeFunction<
HRESULT Function(
VTablePointer lpVtbl, VTablePointer value)>>>()
.value
.asFunction<
int Function(VTablePointer lpVtbl, VTablePointer value)>()(
ptr.ref.lpVtbl, value.ref.lpVtbl);
if (FAILED(hr)) throwWindowsException(hr);
}