Platform SDK: MAPI

Setting a Table Position with a Bookmark

A bookmark is a resource that indicates a particular location in a table. Setting a bookmark makes it possible to return to a position at a later time, a feature that can significantly improve the performance of table operations. MAPI defines three standard bookmarks:

BOOKMARK_CURRENT Points to the present row in a table.
BOOKMARK_BEGINNING Points to the first row in a table.
BOOKMARK_END Points to the last row in a table.

Table implementers are required to support these standard bookmarks and can also support others. However, because bookmarks are resources and resources are limited, bookmark users should free them as soon as possible.

To set a bookmark at the current table position

To free a bookmark

To move the cursor to a bookmarked position