diff options
| author | AShifter <[email protected]> | 2017-04-22 13:41:33 -0600 |
|---|---|---|
| committer | AShifter <[email protected]> | 2017-04-22 13:41:33 -0600 |
| commit | 51177cd4c24b9b107726bdbae914d49f6b5fa7b5 (patch) | |
| tree | 08d585cb8e2b0241aaede964a38973af42a1c470 /TimeHACK.Engine/BSODCreator.cs | |
| parent | 5773e8ac9aeac2d395a700eac26d86db90c60c13 (diff) | |
| parent | e6474bbf221d26d227e42174c4d1ab939987be2b (diff) | |
| download | histacom2-51177cd4c24b9b107726bdbae914d49f6b5fa7b5.tar.gz histacom2-51177cd4c24b9b107726bdbae914d49f6b5fa7b5.tar.bz2 histacom2-51177cd4c24b9b107726bdbae914d49f6b5fa7b5.zip | |
Merge remote-tracking branch 'refs/remotes/TimeHACKDevs/master'
Diffstat (limited to 'TimeHACK.Engine/BSODCreator.cs')
| -rw-r--r-- | TimeHACK.Engine/BSODCreator.cs | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/TimeHACK.Engine/BSODCreator.cs b/TimeHACK.Engine/BSODCreator.cs new file mode 100644 index 0000000..59eeb16 --- /dev/null +++ b/TimeHACK.Engine/BSODCreator.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using TimeHACK.Engine.Template; + +namespace TimeHACK.Engine +{ + public class BSODCreator + { + public static System.Drawing.Text.PrivateFontCollection pfc = new System.Drawing.Text.PrivateFontCollection(); + + public enum BSODCauses + { + Testing, + WimpEnding, + PiracyEnding, + } + + public Win9XBSOD throw9XBSOD(bool except, BSODCauses type) + { + pfc.AddFontFile(AppDomain.CurrentDomain.BaseDirectory + "\\windows_command_prompt.ttf"); + Win9XBSOD bsod = new Win9XBSOD(); + foreach (Control ctrl in bsod.Controls) { + ctrl.Font = new System.Drawing.Font(pfc.Families[0], 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((0))); + } + bsod.TopMost = true; + bsod.FormBorderStyle = FormBorderStyle.None; + bsod.WindowState = FormWindowState.Maximized; + switch (type) + { + case BSODCauses.Testing: + bsod.textBox1.Text = "This is the testing type of BSOD. Hurrah."; + break; + case BSODCauses.WimpEnding: + bsod.textBox1.Text = "An unknown but fatal exception has occured has occured in the program \"wchat98.exe\". The current processes will be terminated."; + break; + case BSODCauses.PiracyEnding: + bsod.textBox1.Text = "Vital elements of Windows were removed, but recovered. However, your data has been lost."; + bsod.BackColor = System.Drawing.Color.Black; + foreach (Control ctrl in bsod.Controls) ctrl.ForeColor = System.Drawing.Color.Silver; + bsod.label1.BackColor = System.Drawing.Color.Silver; + bsod.label1.ForeColor = System.Drawing.Color.Black; + break; + default: + break; + } + bsod.Show(); + return bsod; + } + } +} |
