摘要: /// /// 设置用户密码 /// [DllImport("Netapi32.dll")] extern static int NetUserEnum([MarshalAs(UnmanagedType.LPWStr)] string sName,int Level,int filter,out IntPtr bufPtr,int Prefmaxlen, out int Entriesread,out int Totalentries,out int Resume_Handle); [DllImport("Netapi32... 阅读全文
posted @ 2013-07-11 15:52 Ethan.Sun 阅读(719) 评论(0) 推荐(0) 编辑
摘要: Process process= new Process(); process.StartInfo.CreateNoWindow = true; process.StartInfo.UseShellExecute = false; process.StartInfo.FileName = "Cmd.exe"; process.StartInfo.RedirectStandardInput = true; process.StartInfo.RedirectStandardOut... 阅读全文
posted @ 2013-07-11 14:54 Ethan.Sun 阅读(284) 评论(0) 推荐(0) 编辑
摘要: public static void addItemToXml(string method,string firstKey,string id,string checkName,string refValue) { XmlDocument xDoc = new XmlDocument(); xDoc.Load(txtValueHelper.txtValue); XmlNode xNode = xDoc.SelectSingleNode("Check"); XmlEl... 阅读全文
posted @ 2013-07-11 10:18 Ethan.Sun 阅读(304) 评论(0) 推荐(0) 编辑