Microsoft.Office.Interop.Outlook,在Outlook中具有优势

时间:2018-07-20 00:03:21

标签: c# outlook interop

如果Outlook是作为单独的程序安装的,则我可以通过Microsoft.Office.Interop.Outlook访问Outlook Mails文件。

但是Windows 10确实具有运行应用程序框架主机的内置Outlook。我无法以任何方式连接到它。

这就是我访问Outlook的方式

var ol = (Microsoft.Office.Interop.Outlook.Application)Marshal.GetActiveObject("Outlook.Application");
var windowType = ol.Application.ActiveWindow();

内置Outlook的Exe称为HxOutlook.exe

有什么办法告诉C#我想访问HxOutlook.exe?

0 个答案:

没有答案
相关问题