Search code examples
c#comoutlook-2003

How to get Outlook 2003 accounts list using Outlook 2003 object model


Is it possible to get list of all existing accounts from Outlook 2003 using only standard COM? It means I can't use Redemption library, but only default Outlook 2003 object model . It's much easy to get accounts at Outlook 2007/2010:

dynamic outlook = AutomationFactory.GetObject("Outlook.Application");
var accounts = outlook.Session.Accounts;

But there is no "Accounts" property for Outlook 2003. By default I can access only default account using "CurrentUser" property. So maybe is there some another way to obtain all accounts (using ONLY Outlook 2003 object model)?


Solution

  • I've finally found answer. I'm not using object model, but I do exactly same as Redemption (read registry). So it's acceptable answer as for me.