SetToMax method

void SetToMax()

Implementation

void SetToMax() {
  final hr = _thisPtr.ref.vtable
      .elementAt(8)
      .cast<Pointer<NativeFunction<HRESULT Function(Pointer)>>>()
      .value
      .asFunction<int Function(Pointer)>()(_thisPtr.ref.lpVtbl);

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