确定是否加载了简单MAPI或扩展MAPI的最佳方法

时间:2014-10-28 13:29:17

标签: outlook outlook-addin outlook-redemption

如何简单地确定是否加载了简单MAPI或扩展MAPI。 因为我想要在wenn中添加简单的MAPI加载。 我正在使用Add-In Express和Redemption.dll。

2 个答案:

答案 0 :(得分:2)

使用Windows“发送到”命令实际上与SendMail.dll集成。 AFAIK你不能拦截这些调用做自定义的事情,但你可以在上下文菜单中添加自己的快捷方式:

http://www.slipstick.com/outlook/create-a-custom-send-to-shortcut/

答案 1 :(得分:0)

这个解决方案怎么样?这会导致问题吗?

Outlook.Application outlookApp = null;
Outlook.Explorer outExp = null;

try
{
    outlookApp = (Outlook.Application)AddinModule.CurrentInstance.OutlookApp;
    outExp = outlookApp.ActiveExplorer() as Outlook.Explorer;

    if (outExp != null)
    {
       // extended stuff
    } else {
       // simple stuff
    }
}