How can I determine the default Outlook account?

后端 未结 1 814
自闭症患者
自闭症患者 2021-01-26 17:02

I\'m logging into Outlook 2007 from my application and can enumerate the Accounts.Item[i] objects to look at Account settings.

What I\'m unable to find is:

How c

1条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-26 17:23

    Firstly, there are 3 types of accounts - store, mail and address book. Which default account do you need?

    Secondly, you can use IOlkAccountManaget object (look at it in OutlookSpy - click IOlkAccountManaget button) if you are using Extended MAPI. Otherwise you can use Redemption and its RDOSession.Accounts.GetOrder method.

    0 讨论(0)
提交回复
热议问题