Office 365 2020 年 4 月 24 日更新后 MAPIInitialize( ) 失败

MAPIInitialize( ) fails after April 24, 2020 update of Office 365

从 2020 年 4 月 22 日开始,此代码段开始失败:

 HRESULT hRes;
 MAPIINIT_0 MAPIINIT= { 0, MAPI_MULTITHREAD_NOTIFICATIONS};
 hRes = MAPIInitialize(&MAPIINIT);   <---  Program halts here.

至少从 2000 年(20 年)开始,此代码 运行 一直没有问题。

在 Office 365 更新后,这至少在一台计算机上失败。但是,此问题与几个不同的 Outlook 版本有关:

Office 365 版本 2005 - 16.0.12823.20000 64 位 - Windows 内幕。

Office 365 版本 2003 - 12624.20520(点击 运行)- 当前版本。

到目前为止 - 仅在 Windows 10。

有没有人找到 运行 MAPIInitialize( ) 的方法?

是的,最新的 Insider Slow(每月)更新中断了 MAPIInitialize

Microsoft 已发现此问题,但尚未解决。 唯一的解决方法是安装 Insider Fast build (https://www.msoutlook.info/question/office-365-for-business-office-insider-fast-builds) or downgrading to one of the previous versions https://support.microsoft.com/en-us/help/2770432/how-to-revert-to-an-earlier-version-of-office-2013-or-office-2016-clic

您也可以尝试修改系统PATH: https://github.com/stephenegriffin/mfcmapi/issues/367

正在加载

%ProgramFiles%\Microsoft Office\root\vfs\ProgramFilesCommonX86\Microsoft Shared\OFFICE16\Mso20win32client.dll

%ProgramFiles%\Microsoft Office\root\Office16\OutlookServicing.dll

在调用 MAPIInitialize() 之前消除崩溃。

对我们来说,系统路径修改效果很好。包括 32/64 位在内的不同版本的确切路径是不同的。我们构建了一个小型可执行文件来以最终用户友好的方式处理此问题:

https://www.companionlink.com/files/special/Fix365MAPI.exe

To add path:  fix365mapi
To remove path:  fix365mapi /u
Reboot the PC to ensure the path is used.

我们拥有庞大的客户群。我们已经验证了拥有 Insider Slow、Insider Fast、Insider Fast(4 月 27 日更新)和每月客户的客户的问题。但是,显然只有一小部分我们的安装基础遇到了这个问题。所以肯定还有第二个因素,可能是除了Office 365更新之外的(Click-to-运行)或者4月Windows10的更新。

在我们的测试中,添加路径解决了这个问题,所以它看起来像是一个简单的依赖问题。