Поделиться через


������������� ���������� ������� ������� Exchange

Область применения: Outlook 2013 | Outlook 2016

Microsoft Outlook 2010, русская версия и Microsoft Outlook 2013 поддерживают интеграцию с несколькими учетными записями электронной почты Exchange. � Outlook�2010 ��� Outlook�2013 ������������ ����� �������� ��� ������� ������� exchange ��� ������ ������� � ��-�������� ������� �������� ����������� � ����������� ������� Exchange, �������� �������������� ����������� ������ ������� (GAL), Exchange-���������� ������������ � ����� ������ � �����.

Те, кто знаком с разделами профиля MAPI для Microsoft Office Outlook 2007 и более ранних версий, знают, что параметры Exchange, такие как имя пользователя электронной почты и имя сервера, хранятся в фиксированном разделе глобального профиля Exchange pbGlobalProfileSectionGuid. � Outlook�2010 � Outlook�2013 ������ ������� ������ Exchange ��������� ����������� ������ ������� ��� �������� ����������, ����������� pbGlobalProfileSectionGuid.

Outlook�2010 and Outlook�2013 Exchange settings are still stored in the profile, but a unique identifier for the profile section that contains their settings is dynamically allocated per profile. The location of the Exchange settings in the profile is stored in the ������������ �������� PidTagExchangeProfileSectionId, which can be found in the message service profile section of the Exchange account. This property can also be found in the profile section for each provider in this message service of the account. The unique identifier is not stored on the server and will be different across profiles.

Outlook�2010 � Outlook�2013 ������������ PidTagExchangeProfileSectionId � �������� ����������� �������������� ��� �������� ������� ������ Exchange. ��� ������������� ����� �������, ���� ���������� ������������� ���������� emsmdbUID. ��� ��������� �������� MAPI � Outlook emsmdbUID ����� ������������� �������, ����� ������� ������ Exchange ������� ������������ ��� ��������.

In order to support multiple Exchange accounts, you must use some calls to new functions in your code. Replace any call that uses an entryID and either IAddrBook::OpenEntry or IAddrBook::CompareEntryIDs on IMailUser: IMAPIProp and IDistList: IMAPIContainer with one of the following functions.

��������� �����������

��� ������� MAPI, ���������� ����� ��������� ���� ����� ������ emsmdbUID ��-�������� ��������������. ��� ������� ����� ���������� ��� ��������� ���������� ����, pbGlobalProfileSectionGuid. ������� ��� ����� ������� ����� ���������������� � ����� ���������� ������� ������ Exchange, ������� ������������ ������� ������� ������. ������� ������, ������� ������������ ������� ������ ������ ����� ����������, ��������� ������� ������ ��������� � ���������� ������� ��� PR_EMSMDB_LEGACY. ������ ���� ������ ��������� ����� ����� ��� �������� true � ��� PidTagExchangeProfileSectionId ���������� ������� ������ emsmdbUID.

Примечание.

[!����������] ������������� ��������� MAPI, ����� ��� ��������� �� ��������� � ������� ������ �� ��������� �� ��������� �������� �������, �� ������� ������� ������ ������������ ������ ������� ������. �� ������� ������ ������� ������, ������� ������������ ������ ������� ������.

emsmdbUID ������� ������ ������� ������ ���������� � Outlook ����������� ������� �������. ���� ��� �������� �� ����������, ������ ��� ������� ����� ��������� ����� ����������, ����� ������� ������ �������� ���������� ������� ������ � ������� �������� � Outlook ����������� ������� �������.

���������� �����, Outlook ����������� ������� ������� ���������� �� ����������� ������� ������� Exchange, � � Outlook�2010 � Outlook�2013 ����������� ������� ������� Exchange ������ �� ������������� ���������� ��������� ������� ��������� ������� ������� Exchange. Outlook ������ ���������� ������� �������� �������� � Outlook, ����� ��� ��������� ����� MRU ��� ��������� ���������� �����������.

�������� ����� ���������� ������� ������

����� ��������� ������ ��������� � ����������� �������� �������� Exchange, ����������� ����� �������, ����������� �������� ������� ������, ����� ������ � �������� ����� ����� ���������� ������� ������ Exchange.

��������� ���������� �������� ����� API-���������� ���� ����������, ��������� API-����������, �� ��������������� ��������� ��������� Exchange. � ���� ��������� ������� ������ ������ �������� emsmdbUID.

� ���������� � emsmdbUIDemsabpUID����� ����� ��������� ������� ������� Exchange.

  1. �������� emsmdbUID ���������� �������� ������� ������.

  2. �������� emsabpUID ���������� ���������� Exchange �������� ����.

The emsabpUID value is typically used when resolving a recipient. When resolving a recipient using IAddrBook::ResolveName, an Exchange recipient row contains the PR_AB_PROVIDERS (0x3D010102) property, which contains the emsabpUID value. This emsabpUID value identifies the Exchange address book provider for the specific recipient.

���� �� ������ ���������� �������� emsabpUID ��� ������������� emsmdbUID, �������� ������ ������� ��� emsmdbUID � �������� �������� PR_EMSABP_USER_UID (0x0x3D1A0102).

If you are calling IAddrBook::PrepareRecips, make sure that the Exchange recipients in the list that you pass in contain the PR_AB_PROVIDERS property that has the emsabpUID that corresponds to the address book provider that the recipient belongs to. Calling IAddrBook::PrepareRecips on a row that you obtained from IAddrBook::ResolveName requires no additional action, but some code will call IAddrBook::PrepareRecips on rows that contain only the PR_ENTRYID property. Rows in this and similar situations should contain both PR_ENTRYID and PR_AB_PROVIDERS with the PR_AB_PROVIDERS property set to the correct emsabpUID.

������� �������� �������� ���������� ���������� ������� ������� Exchange �������� ��������� �������:

  • �������� ���������� ������������� ������, ��� ��������� � ������� ��������� ���������, ������� �������������, � ��� ���� �������� PR_SERVICE_UID. ������ ����� ���������� ���������� PR_MDB_PROVIDER. ��� ������ �������� ������ ���������������� ��������.

  • �������� emsmdbUID, ��� ��������� � ������� ����� ��������� ��� ������, ������� ������������� PidTagExchangeProfileSectionId, ������� ������������� emsmdbUID.

См. также

HrCompareABEntryIDsWithExchangeContext

HrDoABDetailsWithExchangeContext

HrDoABDetailsWithProviderUID

HrGetGALFromEmsmdbUID

HrOpenABEntryUsingDefaultContext

HrOpenABEntryWithExchangeContext

HrOpenABEntryWithProviderUID

HrOpenABEntryWithProviderUIDSupport

HrOpenABEntryWithResolvedRow

HrOpenABEntryWithSupport

������������ �������� PidTagExchangeProfileSectionId

How To Open the Global Profile Section