Using the IExchangeFavorites interface, you can programmatically add public folders to the Favorites folder and delete public folders from the Favorites folder.
You can obtain the IExchangeFavorites interface by calling the QueryInterface method on the folder whose entry identifier is specified by the PR_IPM_FAVORITES_ENTRYID property on the public folder store. This interface exposes the following methods:
Methods of the IExchangeFavorites Interface
Method | Description |
---|---|
IExchangeFavorites::AddFavorites | Adds a list of public folders to the Favorites folder. |
IExchangeFavorites::DelFavorites | Removes a list of public folders from the Favorites folder. |
IExchangeFavorites::GetLastError | Retrieves information about the last occurring error condition. |