windows mobile网络设备 ------------- DMProcessConfigXML

背景: windows mobile 设备 通过gprs 上网。  配置网络.



网络连接方式:cmwap.

使用DMProcessConfigXML

1,生成接入点配置文件

代码
< characteristic  type ="CM_ProxyEntries" >
< characteristic  type ="HTTP-{ADB0B001-10B5-3F39-27C6-9742E785FCD4}" >
< parm  name ="SrcId"  value ="{ADB0B001-10B5-3F39-27C6-9742E785FCD4}"   />  
< parm  name ="DestId"  value ="{436EF144-B4FB-4863-A041-8F905A62C572}"   />  
< parm  name ="Proxy"  value ="10.0.0.200:80"   />  
< parm  name ="Type"  value ="1"   />  
< parm  name ="Enable"  value ="1"   />  
< parm  name ="UserName"  value =""   />  
< parm  name ="Password"  value =""   />  
< parm  name ="ExtraInfo"  value =""   />  
< parm  name ="Override"  value =""   />  
</ characteristic >
</ characteristic >

 

 

3,添加网络配置

 

代码
< characteristic  type ="CM_Networks" >
    
< characteristic  type ="gprs" >
        
< parm  name ="DestId"  value ="{043d7aae-a462-4754-9171-9001468ce771}"   />  
        
< parm  name ="Secure"  value ="0" />
        
< parm  name ="ReadOnly"  value ="0" />
    
</ characteristic >
</ characteristic >

 

 

 

通过DMProcessConfigXML  处理此xml文件。

gprs网络配置完成。

你可能感兴趣的:(Windows Mobile)