none
MAPI and Multiple Exchange Accounts RRS feed

  • Question

  • Hi

    I need to know if a exchange postbox in outlook is configured as/in cache mode.
    Because since Outlook 2010 it is possible to add more than one exchange account to your mapi profile, it's not suggested to use pbGlobalProfileSectionGuid. Instead evaluate PR_EMSMDB_SECTION_UID.

    My problem is however, which profile configuration entry belongs to which postbox?
    Is there a property in IProfSect or in IProviderAdmin to detect this safely? Okay, PR_DISPLAY_NAME is same. But is this a good choice?

    After OpenProfileSection:

    BR
    Michael

    Sunday, January 6, 2019 10:57 AM

Answers

All replies

  • Read the PR_EMSMDB_SECTION_UID property from IMsgStore .


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Monday, January 7, 2019 3:12 PM
  • Thanks Dmitry!

    I got this property and his value through a call of HrGetOneProp. But I am a little bit confused. Is this a hidden property? Why this property is not shown in MFCMapi though GetPropList and GetProps??


    Tuesday, January 8, 2019 7:38 PM
  • Most likely a bug in the store provider - it is not returned by GetPropList.

    In OutlookSpy, you can open the IMsgStore window, right click, select "IMAPIProp::GetProps" and enter PR_EMSMDB_SECTION_UID. You can also click right-click and select "Probe Unlisted Properties".

    Once PR_EMSMDB_SECTION_UID is displayed, you can right click on it and select IMAPISession::OpenProfileSection to see the profile section.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Tuesday, January 8, 2019 7:57 PM