当前位置: 代码迷 >> Windows Mobile >> 新建一个线程发送短信后,无法拦截短信,该如何处理
  详细解决方案

新建一个线程发送短信后,无法拦截短信,该如何处理

热度:162   发布时间:2016-04-25 07:57:18.0
新建一个线程发送短信后,无法拦截短信
我新建一个线程调用Microsoft.WindowsMobile.PocketOutlook.SmsMessage.Send()
发送了短信后,无法通过
Microsoft.WindowsMobile.PocketOutlook.MessageInterception.MessageInterceptor 来拦截短信,其中拦截条件设为InterceptionAction.NotifyAndDelete
退出程序后,系统自带的短信软件就可以收到

但是如果直接在界面上调用Microsoft.WindowsMobile.PocketOutlook.SmsMessage.Send()发送短信就不出现上面这种情况,不知道怎么回事


------解决方案--------------------
把tmail进程杀掉你的程序就可以收到了。
------解决方案--------------------
unlock the tmail process
  相关解决方案