资源简介

用VisualStudio2005(C#)实现的进程保护(源代码),提供了保护进程的动态链接库实现,直接调用就OK。保护进程不被任务管理器结束,保护其他进程,方便调用。附带文档。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using KProtectProcess;

namespace TestClose
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)
        {
            if (KProcess.SelfProtection())
            {
                MessageBox.Show(“成功保护该进程!“);
            }
        }

        private void button2_Click(object sender EventArgs e)
        {
            if (KProcess.UnLoadProtection())
            {
                MessageBox.Show(“已经停止保护进程!“);
            }
        }

        private void button3_

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      20480  2010-06-24 23:20  TestClose\TestClose\bin\Debug\KProtectProcess.dll

     文件      13824  2010-06-24 23:20  TestClose\TestClose\bin\Debug\KProtectProcess.pdb

     文件      36864  2010-06-24 22:05  TestClose\TestClose\bin\Debug\NKCore.dll

     文件      20480  2010-06-25 01:11  TestClose\TestClose\bin\Debug\TestClose.exe

     文件      24064  2010-06-25 01:11  TestClose\TestClose\bin\Debug\TestClose.pdb

     文件       5632  2005-11-11 22:25  TestClose\TestClose\bin\Debug\TestClose.vshost.exe

     文件       1319  2010-06-25 01:10  TestClose\TestClose\Form1.cs

     文件       6889  2010-06-24 23:22  TestClose\TestClose\Form1.Designer.cs

     文件       5814  2010-06-24 23:22  TestClose\TestClose\Form1.resx

     文件       3620  2010-06-25 01:08  TestClose\TestClose\obj\Debug\ResolveAssemblyReference.cache

     文件        842  2010-06-25 01:08  TestClose\TestClose\obj\Debug\TestClose.csproj.GenerateResource.Cache

     文件      20480  2010-06-25 01:11  TestClose\TestClose\obj\Debug\TestClose.exe

     文件        180  2010-06-25 01:08  TestClose\TestClose\obj\Debug\TestClose.Form1.resources

     文件      24064  2010-06-25 01:11  TestClose\TestClose\obj\Debug\TestClose.pdb

     文件        180  2010-06-24 23:21  TestClose\TestClose\obj\Debug\TestClose.Properties.Resources.resources

     文件        313  2010-06-25 01:11  TestClose\TestClose\obj\TestClose.csproj.FileList.txt

     文件        468  2010-06-24 22:56  TestClose\TestClose\Program.cs

     文件       1184  2010-06-24 22:56  TestClose\TestClose\Properties\AssemblyInfo.cs

     文件       2872  2010-06-24 22:56  TestClose\TestClose\Properties\Resources.Designer.cs

     文件       5612  2010-06-24 22:56  TestClose\TestClose\Properties\Resources.resx

     文件       1092  2010-06-24 22:56  TestClose\TestClose\Properties\Settings.Designer.cs

     文件        249  2010-06-24 22:56  TestClose\TestClose\Properties\Settings.settings

     文件       3332  2010-06-25 01:08  TestClose\TestClose\TestClose.csproj

     文件        916  2010-06-25 01:08  TestClose\TestClose.sln

    ..A..H.     12800  2010-06-25 01:11  TestClose\TestClose.suo

     目录          0  2010-06-24 22:56  TestClose\TestClose\obj\Debug\TempPE

     目录          0  2010-06-24 23:08  TestClose\TestClose\bin\Debug

     目录          0  2010-06-25 01:11  TestClose\TestClose\obj\Debug

     目录          0  2010-06-24 23:08  TestClose\TestClose\bin

     目录          0  2010-06-24 23:00  TestClose\TestClose\obj

............此处省略7个文件信息

评论

共有 条评论