Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Identify custom and build-in outlook folder using MAPI

13 views
Skip to first unread message

Ashish

unread,
Jan 20, 2011, 10:08:51 AM1/20/11
to
Hi,

Using MAPI how can I identify whether an outlook folder is a custom
folder or a build-in (Inbox, Outbox, Sent Items, Calendar, Task etc.)
folder.

One way is to compare the entry ID of the folder with the entry ID of
all the documented special MAPI folders using the session object but
this approach won’t work with some other built-in folders like ‘RSS
Feeds’ etc.

Thanks in advance.

Pete Maclean

unread,
Jan 20, 2011, 5:46:17 PM1/20/11
to
The method you cite actually does work for all special folders and, as far
as I know, is the only way to do it. Perhaps what you are missing is some
documentation on PR_ADDITIONAL_REN_ENTRYIDS_EX which you can find. This
property contains, among other things, the EntryID of "RSS Feeds".

Pete Maclean

Ashish

unread,
Jan 21, 2011, 10:06:58 AM1/21/11
to

Thanks for the reply Pete.
I verified that PR_ADDITIONAL_REN_ENTRYIDS_EX doesn’t contains ‘RSS
Feeds’ folder‘s entry ID.
Also see Stephen Griffin’s comment here -
http://blogs.msdn.com/b/stephen_griffin/archive/2004/08/18/216497.aspx?PageIndex=46

Pete Maclean

unread,
Jan 21, 2011, 2:14:53 PM1/21/11
to
"Ashish" <ashish...@gmail.com> wrote in message
news:5cc23ff0-9962-40a7...@29g2000prb.googlegroups.com...


Ashish,

Look at the source code for MFCMAPI (http://mfcmapi.codeplex.com/). Maybe
"documented" is too strong a word! But the necessary information is there.

Pete

0 new messages