using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.WindowsMobile.PocketOutlook;
using Microsoft.WindowsMobile.PocketOutlook.MessageInterception;
namespace IsLanJie
{
public partial class Form1 : Form
{
MessageInterceptor mi;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
mi = new MessageInterceptor();
mi.MessageReceived += new MessageInterceptorEventHandler(mi_MessageReceived);
}
void mi_MessageReceived(object sender, MessageInterceptorEventArgs e)
{
SmsMessage sms = (SmsMessage)e.Message;
MessageBox.Show(sms.Body);
}
}
}
短信拦截
最新推荐文章于 2021-03-01 11:27:04 发布