whisht

    十年

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2010年11月18日

摘要: Windows Mobile创建网络连接/// <summary>/// Windows Mobile创建网络连接/// </summary>private static void createRasDial(){ RegistryKey RootKey = Registry.LocalMachine; RegistryKey key = RootKey.OpenSubKey("Comm"); key = key.OpenSubKey("ConnMgr"); key = key.OpenSubKey("Providers 阅读全文
posted @ 2010-11-18 17:26 WHISHT 阅读(178) 评论(0) 推荐(0) 编辑

摘要: Windows Mobile连接网络 using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.Threading; using System.Collections;namespace DATest{ public class ConnectManager { const int S_OK = 0; const uint CONNMGR_PARAM_GUIDDESTNET = ... 阅读全文
posted @ 2010-11-18 16:47 WHISHT 阅读(259) 评论(0) 推荐(0) 编辑

摘要: WinCE系统经裁剪后,安装到系统的文件在掉电后会丢失,所以需要每次都重新操作(创建快捷方式)。参考代码如下:/// <summary>/// WinCE5下创建桌面快捷方式/// </summary>private static void createHotLink5(){ string hotlink = @"/Windows/桌面/快捷方式.lnk"; if (!File.Exists(hotlink)) { string src = Path.GetDirectoryName(System.Reflection.Assembly.GetCal 阅读全文
posted @ 2010-11-18 11:11 WHISHT 阅读(1329) 评论(1) 推荐(1) 编辑

摘要: 利用WinCE注册表,创建拨号连接/// <summary>/// WinCE5创建网络连接/// </summary>private static void createRasDial5(){ RegistryKey RootKey = Registry.CurrentUser; RegistryKey key = RootKey.CreateSubKey("Comm"); key = key.CreateSubKey("RasBook"); RegistryKey subkey = key.CreateSubKey(RasNa 阅读全文
posted @ 2010-11-18 11:05 WHISHT 阅读(600) 评论(0) 推荐(0) 编辑