Detecting Outlook security model

D

Dave Townsend

I'm trying to figure out whether there is a way for my COM addin to
detect the security model it is running in in Outlook, specifically of
course whether it is likely to generate the security warnings that tend
to be so annoying.

Basically My addin at the moment occasionally accesses attributes for a
purely aesthetic value. They improve the UI for the user but would be
best doen without if they were going to generate a warning.

Since my addin is targetted at all versions of outlook 2000 and higher I
guess what I really need is:

For outlook 2000, detect if the security update is installed. I suspect
this can be found from the application version, but I don't know what
versions mean what.

For outlook 2003 I am pretty safe. All com addins are trusted as long as
you access stuff in the right way.

For outlook 2002 I need to be able to tell if the addin is trusted. I
suspect that will be the tricky one.

Anybody got any suggestions?

Dave
 
F

Fredrik Wahlgren

Dave Townsend said:
I'm trying to figure out whether there is a way for my COM addin to
detect the security model it is running in in Outlook, specifically of
course whether it is likely to generate the security warnings that tend
to be so annoying.

Basically My addin at the moment occasionally accesses attributes for a
purely aesthetic value. They improve the UI for the user but would be
best doen without if they were going to generate a warning.

Since my addin is targetted at all versions of outlook 2000 and higher I
guess what I really need is:

For outlook 2000, detect if the security update is installed. I suspect
this can be found from the application version, but I don't know what
versions mean what.

For outlook 2003 I am pretty safe. All com addins are trusted as long as
you access stuff in the right way.

For outlook 2002 I need to be able to tell if the addin is trusted. I
suspect that will be the tricky one.

Anybody got any suggestions?

Dave

I don't think .NET add-ins are trusted. You may need to create a shim dll.
Here are two articles that you may want to read
http://msdn.microsoft.com/library/d...ry/en-us/dnout2k2/html/odc_outlookcomshim.asp

http://blogs.msdn.com/eric_carter/archive/2004/10/01/236752.aspx

/ Fredrik
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top