Platform SDK: MAPI |
The IAddrBook::SetDefaultDir method establishes a container as the default address book container — the container that is initially made available.
HRESULT SetDefaultDir( ULONG cbEntryID, LPENTRYID lpEntryID );
Clients and service providers call the IAddrBook::SetDefaultDir method to establish a new default address book container. The default container is the container that the user sees displayed in the address book when the address book is first opened. SetDefaultDir saves the default container as an entry in the profile. The container remains as the default either until another call to SetDefaultDir is made — in the same session or in another session — or the container is removed.
IAddrBook::GetDefaultDir, IAddrBook::GetSearchPath, IMAPISession::Logoff, MAPILogonEx