Getting the current addressbook?

  • Thread starter Thread starter Mo
  • Start date Start date
M

Mo

Hello everybody,

there should be a way to get the current adressbook in Outlook, only I don't
find it :-).
What I want to do is, before firing application.getaddress(), to set the
current addressbook to the same one last used. So the user doesn't have to
choose the preferred addressbook every time he wants an address. (I know You
can set your default adressbook, but this solution would rather remember the
addressbook it used.)
I haven´t found a means to get hold of that inforamtion through the
GetAddress function and I have searched the registry and other files, but
haven't found where Outlook stores this information.

Any information is highly appreciated,
Peeter
 
You cannot do that in Outlook Object Mode. In Extended MAPI (C++/Delphi
only), call IAddrBook::SetDefaultDir().

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top