所有‘windows mobile’分类中的文章


windows mobile 5.0 进程管理、窗体管理、重启和关闭操作系统


1、进程管理:在NET Compact Framework里进程管理的函数相对要比net Framework里要简化,不过仍然可以比较好的控制程序进程。
A.启动进程:在启动进程后返回进程的id

/// <summary>
/// 启动进程
/// </summary>
/// <param name="fileName">启动文件的目录路径</param>
/// <returns>返回启动进程的进程ID</returns>
public static int StartProcess(string fileName)
[...]

[阅读全文]

分类: windows mobile | 5 条评论 »

windows moblie 5.0在托管程序中实现短信接收和拦截


曾经尝试只用.net cf 在手机(windows moblie 5.0)中实现短信的接收,而同时拦截手机本身的短信提示,代码如下: private void Form1_Load(object sender, EventArgs e)        {                      interceptor = new MessageInterceptor();            interceptor.InterceptionAction = InterceptionAction.NotifyAndDelete;            interceptor.MessageReceived += new MessageInterceptorEventHandler(interceptor_MessageReceived);        } void interceptor_MessageReceived(object sender, MessageInterceptorEventArgs e)        {            SmsMessage......[阅读全文]

分类: windows mobile | 1 条评论 »

Windows mobile 下读取手机SIM卡信息


最近在忙一个移动警务的项目,需要获取SIM卡的信息,来做身份的验证。考虑到获取:国际移动设备识别码(IMEI:International Mobile Equipment Identification Number)和国际移动用户识别码(IMSI:International Mobile Subscriber Identification Number),读取这两个号码用到TAPI的lineGetGeneralInfo()函。在新版的OpenNetCF里没有发现对这个函数的封装(也许我没找到),于是到网上找了找,找到一个以前版本OpenNetCF里的:TapiLib.dll,包含对Windows ce phone api 的封装(TAPI),综合网上的一些资料,实现代码如下:public struct GeneralInfo     {        ......[阅读全文]

分类: windows mobile | 3 条评论 »