aDoubleSo
aDoubleSo

Reputation: 1148

Best way to determine if simple or extended MAPI was loaded

How can I simply determine if simple or extended MAPI is loaded. Because I want to diable my add in wenn simple MAPI is loaded. I'm working with Add-In Express and Redemption.dll.

Upvotes: 0

Views: 674

Answers (2)

aDoubleSo
aDoubleSo

Reputation: 1148

What about this solution? Could this leading to problems?

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
    }
}

Upvotes: 0

Eric Legault
Eric Legault

Reputation: 5834

Using the Windows "Send To" command actually integrates with SendMail.dll. AFAIK you can't intercept these calls to do something custom, but you can add your own shortcuts in the context menu:

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

Upvotes: 2

Related Questions