Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic


Sets a new search path in the profile that is used for the name resolution process.

HRESULT SetSearchPath(
  ULONG ulFlags,
  LPSRowSet lpSearchPath



[in] Reserved; must be zero.


[in] A pointer to the SRowSet structure used to hold the search path. The first property for each aRow member in SRowSet must be PR_ENTRYID (PidTagEntryId).


The search path was successfully set.


One of the containers described in the SRowSet structure did not include its PR_ENTRYID property.

Clients and service providers call the SetSearchPath method to save changes that were made to the container search order that is used to resolve names with the IAddrBook::ResolveName method. The search path is saved between instances of a session.

Clients and providers do not have to call the IMAPIProp::SaveChanges method to make the search path changes permanent.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.