lastBookmarkId property

int lastBookmarkId

Implementation

int get lastBookmarkId {
  final retValuePtr = calloc<Int32>();

  try {
    final hr = (ptr.ref.vtable + 16)
        .cast<
            Pointer<
                NativeFunction<
                    Int32 Function(Pointer, Pointer<Int32> BookmarkId)>>>()
        .value
        .asFunction<
            int Function(Pointer,
                Pointer<Int32> BookmarkId)>()(ptr.ref.lpVtbl, retValuePtr);

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

    final retValue = retValuePtr.value;
    return retValue;
  } finally {
    free(retValuePtr);
  }
}