getting access to a 'search folder'

P

palaga

hi
how can I get access to a 'search folder' from within an outlook 2003 addin
using outlook object model ? All folders I see are 'real' folders, not
search folders. For instance, I would like to see what's in the 'unread
mails' folder.
thanks
 
K

Ken Slovak - [MVP - Outlook]

You can't. Search Folders are under the Search Root folder, just below the
RootFolder of the InfoStore. You would need to use Extended MAPI or CDO to
get at those folders and the InfoStore, although once you have a folder
EntryID and the StoreID you could work with the search folder in Outlook
object model code using NameSpace.GetFolderFromID
 
Top