createToastNotification method
Implementation
Pointer<COMObject> createToastNotification(Pointer<COMObject> content) {
final retValuePtr = calloc<COMObject>();
final hr = ptr.ref.vtable
.elementAt(6)
.cast<
Pointer<
NativeFunction<
HRESULT Function(Pointer, Pointer<COMObject> content,
Pointer<COMObject>)>>>()
.value
.asFunction<
int Function(
Pointer, Pointer<COMObject> content, Pointer<COMObject>)>()(
ptr.ref.lpVtbl, content.cast<Pointer<COMObject>>().value, retValuePtr);
if (FAILED(hr)) {
free(retValuePtr);
throw WindowsException(hr);
}
return retValuePtr;
}