当前位置: 代码迷 >> Windows Mobile >> C# 如果 拦截 系统提示? notification~该如何处理
  详细解决方案

C# 如果 拦截 系统提示? notification~该如何处理

热度:128   发布时间:2016-04-25 07:44:29.0
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;
  相关解决方案