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