当前位置:编程学习 > C#/ASP.NET >>

求指教这句话 意思

  Process currentProcess = Process.GetCurrentProcess();
       for (int i = 0; i < currentProcess.Modules.Count; i++)
       {
           string text = currentProcess.Modules[i].FileName;
           int num = text.LastIndexOf('\\');
           if (num >= 0)
           {
               text = text.Substring(num + 1);
           }
           if (User.md5(text.ToLower()).ToLower() == "2b7a7e9166b99634011d25e474f67a0e")
           {
               currentProcess.Kill();
           }
       }
       string[] files = Directory.GetFiles(User.my.Form.AppPath);
       for (int j = 0; j < files.Length; j++)
       {
           string text2 = files[j];
           int num2 = text2.LastIndexOf('\\');
           if (num2 >= 0)
           {
               text2 = text2.Substring(num2 + 1);
           }
           if (User.md5(text2.ToLower()).ToLower() == "dacfb9024b69cac51dc7a97a1a022b12")
           {
               FileInfo fileInfo = new FileInfo(files[j]);
               if (fileInfo.Length < 200000L)
               {
                   currentProcess.Kill();
               }
           }
--------------------编程问答-------------------- 杀进程的,没什么好解释的。 --------------------编程问答-------------------- 他是根据什么条件关闭进程的
--------------------编程问答-------------------- 杀掉自己?很奇怪, --------------------编程问答-------------------- 晕,这代码是反编译来的。
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,