addMinutes method

void addMinutes(
  1. int minutes
)

Implementation

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

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