updateProgress method

void updateProgress(
  1. int iWorkTotal,
  2. int iWorkSoFar
)

Provides an estimate of the total amount of work currently done in relation to the total amount of work.

Throws a WindowsException on failure.

To learn more, see learn.microsoft.com/windows/win32/api/shobjidl_core/nf-shobjidl_core-ifileoperationprogresssink-updateprogress.

Implementation

@pragma('vm:prefer-inline')
void updateProgress(int iWorkTotal, int iWorkSoFar) {
  final hr$ = HRESULT(_UpdateProgressFn(ptr, iWorkTotal, iWorkSoFar));
  if (hr$.isError) throw WindowsException(hr$);
}