如何检测诸如“转发为附件",“回复会议"之类的其他Outlook事件. [英] How to detect other outlook events such as "Forward as attachment", "Reply with Meeting"

查看:169
本文介绍了如何检测诸如“转发为附件",“回复会议"之类的其他Outlook事件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

开箱即用的Outlook提供以下内容:

Out of the box outlook provides the following:

((Outlook.ItemEvents_10_Event)this._mailItem).Reply += new Outlook.ItemEvents_10_ReplyEventHandler(MailItem_Reply);
((Outlook.ItemEvents_10_Event)this._mailItem).ReplyAll += new Outlook.ItemEvents_10_ReplyAllEventHandler(MailItem_ReplyAll);
((Outlook.ItemEvents_10_Event)this._mailItem).CustomAction += new Outlook.ItemEvents_10_CustomActionEventHandler(MailItem_CustomAction);
((Outlook.ItemEvents_10_Event)this._mailItem).Forward += new Outlook.ItemEvents_10_ForwardEventHandler(MailItem_Forward);

但是,有没有一种方法可以检测其他事件,例如:

However, is there a way to detect other events such as:

  • 回复会议
  • 转发为附件

推荐答案

OOM会将ForwardAsAttachment公开为带有0x0000F618的事件,只是类型库没有公开它. 回复会议"为0x0000F5FD.

OOM exposes ForwardAsAttachment as an event with the dispid of 0x0000F618, it is just the type library does not expose it. "Reply with meeting" is 0x0000F5FD.

您可以使用原始COM使用IConnectionPointContainer/IConnectionPoint挂接这些事件-您可以在 OutlookSpy :选择一个项目,在OutlookSpy工具栏上单击项目"按钮,转到事件"选项卡,单击转发为附件",然后在项目"窗口底部的事件日志"列表中查看记录的事件

You can hook those events using IConnectionPointContainer / IConnectionPoint using raw COM - you can see the events firing in OutlookSpy: select an item, click Item button on the OutlookSpy toolbar, go to the Events tab, click "Forward As Attachment", see the event logged in "Events Log" list ta the bottom of the Item window.

这篇关于如何检测诸如“转发为附件",“回复会议"之类的其他Outlook事件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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