Platform SDK: MAPI |
The IAddrBook::SetSearchPath method sets a new search path in the profile that is used for the name resolution process.
HRESULT SetSearchPath( ULONG ulFlags, LPSRowSet lpSearchPath );
Clients and service providers call the IAddrBook::SetSearchPath method to save changes made to the container search order that is used to resolve names with IAddrBook::ResolveName. The search path is saved between instances of a session. This functionality means that, after a call to the IMAPISession::Logoff method, subsequent calls to the MAPILogonEx function during the same session return the same search path as previously set, as long as that search path still exists.
Clients and providers need not call the IMAPIProp::SaveChanges method to make the search path changes permanent.
IAddrBook::GetDefaultDir, IAddrBook::GetPAB, IAddrBook::GetSearchPath, PR_CONTAINER_FLAGS