How to detect a virtual folder in Ol2003?

R

Ronald van Aalten

Hi,

How can I programmatically detect a virtual folder (=search folder) in
outlook 2003? The mapifolder object is valid. Is there a (ext.mapi) property
to check?

Ronald
 
D

Dmitry Streblechenko

IMAPIFolder::GetSearchCriteria() fails for regular folders, but works for
the search folders.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
R

Ronald van Aalten

I'm using VB6 so there's no way to call the GetSearchCriteria (?). Is there
another way?

Ronald
 
D

Dmitry Streblechenko

I can only think of calling MAPIFolder.Items.Add - it will fail for the
Search folders. For the regular folders you can immediately delete the
returned message.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top