读书人

C# 如果 拦截 系统提示? notifica

发布时间: 2012-03-24 14:00:46 作者: rapoo

C# 如果 拦截 系统提示??? notification~
C# 如果 拦截 系统提示??? notification~

比如 闹钟响的时候.新的短信或是邮件到达的时候.. 约会的提醒等... 怎么拦截它们..  不让它们自动跳出.. 而是由我的程序来处理呢???   或者关闭系统提示..让我的程序自己监视这些事件 ???

[解决办法]
拦截短信这样应该可以:
//拦截短信
MessageInterceptor msgInterceptor = new MessageInterceptor();
msgInterceptor.InterceptionAction = InterceptionAction.NotifyAndDelete;
msgInterceptor.MessageReceived += new MessageInterceptorEventHandler(msgInterceptor_MessageReceived);

添加引用Microsoft.WindowsMobile.PocketOutlook
using Microsoft.WindowsMobile.PocketOutlook.MessageInterception;

读书人网 >Windows Mobile

热点推荐