如何防止“程序试图从 Outlook 访问数据..."对受信任程序的警告 [英] How to prevent "a program is trying to access data from Outlook..." warning for a trusted program

查看:69
本文介绍了如何防止“程序试图从 Outlook 访问数据..."对受信任程序的警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在公司网络上有一个 C# WinForms 应用程序,它应该作为 Outlook 中电子邮件的拖放目标,即我希望能够将电子邮件拖放到我的应用程序中.它使用的是 Office Interop 库 v14(适用于 Outlook 2010).

I have a C# WinForms application on a corporate network that should behave as a drag-and-drop target for emails in Outlook, i.e. I want to be able to drag and drop an email to my application. It is using the Office Interop libraries, v14 (for outlook 2010).

删除时,Outlook 会发出安全警告,并提供允许访问"(1 | 5 | 10) 分钟的选项.

When dropping, Outlook gives a security warning, and an option to "allow access" for (1 | 5 | 10) minutes.

其他应用程序(例如 Visual Studio、TRIM(记录管理系统)等)允许在同一台机器上拖放而不发出任何警告.安全设置由管理员管理,我无权更改.

Other applications (e.g. Visual Studio, TRIM (a records management system), etc) allow dragging and dropping without any warning on the same machine. The security settings are managed by an administrator, and I don't have access to change them.

如何防止我的应用程序的用户发生这种情况?

How do I prevent this from occuring for users of my application?

是否需要为我的应用签名的证书?我需要在某种注册表中注册我的应用程序吗?

Is there a certificate I need to sign my app with? Do I need to register my app in some kind of registry?

推荐答案

您会在 Outlook 中获得标准的安全提示.在此上下文中,安全"是指所谓的对象模型防护",它触发安全提示并阻止对某些功能的访问,以防止恶意程序从 Outlook 数据中获取电子邮件地址并使用 Outlook 传播病毒和垃圾邮件.这些提示不能简单地关闭,除非在运行防病毒应用程序的最新 Outlook 版本中.

You get a standard security prompt in Outlook. "Security" in this context refers to the so-called "object model guard" that triggers security prompts and blocks access to certain features in an effort to prevent malicious programs from harvesting email addresses from Outlook data and using Outlook to propagate viruses and spam. These prompts cannot simply be turned off, except in latest Outlook versions with an anti-virus application running.

要避免此类安全提示,您可以:

To avoid such security prompts you can:

  1. 使用 Outlook 所基于的低级 API 而不是 OOM.或者只是围绕该 API 的任何其他第三方包装器(例如,Redemption).
  2. 使用 Outlook 安全管理器 可以抑制此类以编程方式发出警告.只需要几行代码.
  3. 在公司环境中,管理员可能会选择放宽部分或所有用户的 Outlook 安全性.
  4. 创建一个不会触发安全提示的 Outlook COM 加载项(默认情况下所有 COM 加载项均受信任).
  1. Use a low-level API on which Outlook is based on instead of OOM. Or just any other third-party wrapper around that API (for example, such as Redemption).
  2. Use Outlook Security Manager which allows to supress such warnings programmatically. Just a few lines of code is required.
  3. In a corporate environment, the administrator may choose to loosen Outlook security for some or all users.
  4. Create an Outlook COM add-in which doesn't trigger security prompts (all COM add-ins are trusted by default).

Outlook 面向开发人员的对象模型防护"安全问题中阅读有关这些方法的更多信息 文章.

这篇关于如何防止“程序试图从 Outlook 访问数据..."对受信任程序的警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆