获取Outlook安全警告的句柄,然后单击是 [英] Get the handle of Outlook Security Warnings and Click YES

查看:120
本文介绍了获取Outlook安全警告的句柄,然后单击是的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我被要求开发一个程序,它将回复Outlook 2010中未读的电子邮件。我的背景是一个VB程序员,我一直在要求用C#开发,所以请原谅我成为一名新手(此时只有2周的c#经验)。



我已经成功制作了这个节目,不过对于它发送的每封电子邮件,用户必须单击Outlook安全Windows,建议用户程序正在尝试代表他们发送电子邮件。



我一直在在网上寻找解决方案,但无济于事。我无法更改机器的注册表项以解决此问题,我也无法下载其他软件,它必须在程序中完成。



因为这是在自动化过程中,程序可以接受等待五秒并单击是按钮,因为我需要获取句柄。



我是知道user32.dll中的FindWindow和FindWindowEx函数,不幸的是MSDN文章并没有像我希望的那样直接。



提前感谢。

Hello,

I've been asked to develop a program which will reply to unread emails in Outlook 2010. My background is a VB programmer and I have been asked to develop in C#, so please forgive me for being a newbie (only had 2 weeks c# experience at this point).

I have sucessfully made the program, however for every email it send the user has to click on Outlooks Security Windows, advising the user that a program is trying to send an email on their behalf.

I have been looking online for a solution, but to no avail. I cannot change the registry keys of the machines to get around this, nor can i download additional software, it will have to be done within the program.

As this is in automated process, it would be acceptable for the program to wait the five seconds and click the yes button, for that I would need to get the handle.

I am aware of the FindWindow and FindWindowEx functions in user32.dll, unfortunatly the MSDN articles havent been as straight forward as I would like them to be.

Thanks in advance.

推荐答案

我相信阅读以下文章可能会帮助您找到解决方案:

在发送自动电子邮件时避免过多的安全警告 [ ^ ]
Outlook对象模型的安全行为 [ ^ ]

Microsoft Outlook COM加载项开发人员的重要安全说明 [ ^ ]
I believe that reading below articles might help you to find solution:
Avoiding Excessive Security Warnings when Sending Automated E-mail Messages[^]
Security Behavior of the Outlook Object Model[^]
Important Security Notes for Microsoft Outlook COM Add-In Developers[^]


这篇关于获取Outlook安全警告的句柄,然后单击是的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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