setToNow method

void setToNow()

Implementation

void setToNow() {
  final hr = ptr.ref.vtable
      .elementAt(18)
      .cast<Pointer<NativeFunction<HRESULT Function(Pointer)>>>()
      .value
      .asFunction<int Function(Pointer)>()(ptr.ref.lpVtbl);

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