addSeconds method

void addSeconds(
  1. int seconds
)

Implementation

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

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