How to detect a virtual folder in Ol2003?

  • Thread starter Thread starter Ronald van Aalten
  • Start date Start date
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
 
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
 
I'm using VB6 so there's no way to call the GetSearchCriteria (?). Is there
another way?

Ronald
 
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
 
Back
Top