如何实现让Outlook电子邮件无法读取的用户需求? [英] how to implete the user requirement that let an outlook email can't be read?

查看:98
本文介绍了如何实现让Outlook电子邮件无法读取的用户需求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发一个outlook插件。在某些特定场景下的一个要求,用户无法在他的发送框,框中,删除框中阅读电子邮件...

We are developing an outlook plugin. One requirement like that under some certain scene, user can’t read email in his send box, in box, delete box…

我们尝试但失败了。因为即使插件也禁止用户"打开"电子邮件,用户也可以"读取"电子邮件。

We tried but failed. Because even the plugin can forbid user "open" the email, user can also "read" the email.

在dispinterface中ItemEvents_10,

In dispinterface ItemEvents_10,

打开事件函数:

[id(0x0000f003),helpcontext(0x000001da)]

[id(0x0000f003), helpcontext(0x000001da)]

HRESULT打开([in,out] VARIANT_BOOL *取消);

HRESULT Open([in, out] VARIANT_BOOL* Cancel);

读取事件函数:

[id(0x0000f001),helpcontext(0x000001e0)]

[id(0x0000f001), helpcontext(0x000001e0)]

  ;          
HRESULT Read();

            HRESULT Read();

Read()没有取消参数。

Read() has not Cancel parameter.

我们怎样才能让电子邮件能够不读?

How can we let an email can’t be read?

提前非常感谢。

Leo

推荐答案

根据我的知识,outlook使用DirectUI绘制窗口,很难将窗口子类化,也许我们需要捕获鼠标事件并计算位置以确定它是否是点击事件。
Based on my knowledge , outlook use DirectUI to drawn window, it is hard to subclass window ,maybe we need to capture the mouse event and calculate position to make sure if it is a click event.


这篇关于如何实现让Outlook电子邮件无法读取的用户需求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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