addEras method

void addEras(
  1. int eras
)

Implementation

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

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