超级版主
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
|
【转帖】如何屏蔽ctrl+alt+del?那位牛人做到了,esc不算!
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace 二进制流屏蔽任务管理器
{
class Program
{
staticvoid Main(string[] args)
{
FileStream MyFs; //用二进制流的方法打开它.而且不关闭流.这样任务管理器就打不开了!
MyFs =new FileStream(Environment.ExpandEnvironmentVariables("%windir%\\system32\\taskmgr.exe"), FileMode.Open);
byte[] Mybyte =newbyte[(int)MyFs.Length];
MyFs.Write(Mybyte, 0, (int)MyFs.Length);
while (true)
{
//死循环,如果没有它程序运行就结束了,什么流都关闭了。
}
}
}
}
//原理就是在后台永久性独占taskmgr.exe
http://topic.csdn.net/u/20081122/18...bb48992d5a.html
__________________
借用达朗贝尔的名言:前进吧,你会得到信心!
[url="http://www.dimcax.com"]几何尺寸与公差标准[/url]
|