addDays method

void addDays(
  1. int days
)

Implementation

void addDays(int days) {
  final hr = ptr.ref.vtable
      .elementAt(54)
      .cast<Pointer<NativeFunction<HRESULT Function(Pointer, Int32 days)>>>()
      .value
      .asFunction<int Function(Pointer, int days)>()(ptr.ref.lpVtbl, days);

  if (FAILED(hr)) throw WindowsException(hr);
}