Search for a folder

  • Thread starter Thread starter Gabriel Ciuloaica
  • Start date Start date
G

Gabriel Ciuloaica

Hi,

Witch is the best way to search for a folder in the all folders avaible
in a profile ?

I'm using VC++, so I've tryed to use AdvancedSearch but I do not know
how to set the filter parameter.

Thanks,
Gabi
 
AdvancedSearch searches for items not folders. To locate a particular
folder, you'll have to iterate all the information stores.
 
Sue said:
AdvancedSearch searches for items not folders. To locate a particular
folder, you'll have to iterate all the information stores.

Thanks for the info. The problem is that if I'll iterate trough the
folders in the store, this could be too slow where are many folders.

My ideea is to use AdvanceSearch and provide as scope the folder that
I'm looking for. If the folder is not avaible then the Advance Search
will return one error code. If the folder is avaible it will return the
other error code.

My problem is that I identified witch are the error codes in both cases
but I do not find a way to find the error message associated to each
HRESULT.

I'm getting HRESULT 0x9ac7064f and 0x98b7064f. So, I do not find the DLL
that contain the messages associated with this errors.

Thanks,
Gabi
 
Huh? If you know enough about the location of the folder to use it in an
AdvancedSearch scope, you should be able to just check for its presence
directly.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Sue said:
Huh? If you know enough about the location of the folder to use it in an
AdvancedSearch scope, you should be able to just check for its presence
directly.

Hi Sue,

This is what I wanna do. How can I do this?
 
Sue said:
Huh? If you know enough about the location of the folder to use it in an
AdvancedSearch scope, you should be able to just check for its presence
directly.

Hi Sue,

This is what I wanna do. How can I do this?
 
Sue said:
Walk the folder hierarchy down through the folder's path or use code like
that at http://www.outlookcode.com/d/code/getfolder.htm to walk it for you.
Hi Sue,

Thanks for the information and for the link. At the begining of the page
pointed out by the link it says: "Outlook provides no built-in way to
get a folder if all you know is its name." This is the anster that I'm
looking for.

Now, it seems that the only way to do it "fast" is to write some
Extended MAPI code.

Thanks,
Gabi
 
Back
Top