From 0344f0f2ba9cc1dea9644c97b69f689e2e516c90 Mon Sep 17 00:00:00 2001 From: lempamo Date: Wed, 31 May 2017 17:38:32 -0400 Subject: fixed up bsod --- TimeHACK.Engine/BSODCreator.cs | 108 +++++----- TimeHACK.Engine/Template/Win9XBSOD.Designer.cs | 184 ++++++++-------- TimeHACK.Engine/Template/Win9XBSOD.cs | 1 + TimeHACK.Engine/Template/Win9XBSOD.resx | 238 ++++++++++----------- TimeHACK.Engine/bin/Release/TimeHACK.Engine.dll | Bin 189440 -> 189440 bytes TimeHACK.Engine/bin/Release/TimeHACK.Engine.pdb | Bin 60928 -> 60928 bytes .../TimeHACK.Engine.csproj.GenerateResource.Cache | Bin 2531 -> 2532 bytes ...ACK.Engine.csprojResolveAssemblyReference.cache | Bin 10673 -> 17117 bytes TimeHACK.Engine/obj/Release/TimeHACK.Engine.dll | Bin 189440 -> 189440 bytes TimeHACK.Engine/obj/Release/TimeHACK.Engine.pdb | Bin 60928 -> 60928 bytes 10 files changed, 269 insertions(+), 262 deletions(-) (limited to 'TimeHACK.Engine') diff --git a/TimeHACK.Engine/BSODCreator.cs b/TimeHACK.Engine/BSODCreator.cs index 59eeb16..5f5f480 100644 --- a/TimeHACK.Engine/BSODCreator.cs +++ b/TimeHACK.Engine/BSODCreator.cs @@ -1,54 +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; - } - } -} +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 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; + } + } +} diff --git a/TimeHACK.Engine/Template/Win9XBSOD.Designer.cs b/TimeHACK.Engine/Template/Win9XBSOD.Designer.cs index bc066d4..d6795df 100644 --- a/TimeHACK.Engine/Template/Win9XBSOD.Designer.cs +++ b/TimeHACK.Engine/Template/Win9XBSOD.Designer.cs @@ -28,95 +28,100 @@ /// private void InitializeComponent() { - this.label1 = new System.Windows.Forms.Label(); - this.textBox1 = new System.Windows.Forms.TextBox(); - this.textBox2 = new System.Windows.Forms.TextBox(); - this.textBox3 = new System.Windows.Forms.TextBox(); - this.SuspendLayout(); - // - // label1 - // - this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.label1.AutoSize = true; - this.label1.BackColor = System.Drawing.Color.Silver; - this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label1.ForeColor = System.Drawing.Color.Blue; - this.label1.Location = new System.Drawing.Point(564, 240); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(138, 31); - this.label1.TabIndex = 0; - this.label1.Text = " Windows "; - // - // textBox1 - // - this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); - this.textBox1.BackColor = System.Drawing.Color.Blue; - this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.textBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBox1.ForeColor = System.Drawing.Color.White; - this.textBox1.Location = new System.Drawing.Point(120, 294); - this.textBox1.MaximumSize = new System.Drawing.Size(950, 81); - this.textBox1.Multiline = true; - this.textBox1.Name = "textBox1"; - this.textBox1.ReadOnly = true; - this.textBox1.Size = new System.Drawing.Size(950, 81); - this.textBox1.TabIndex = 0; - this.textBox1.TabStop = false; - this.textBox1.Text = "A fatal exception 0E has occured at 0028:C0034B23. The current application will " + - "be terminated."; - // - // textBox2 - // - this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); - this.textBox2.BackColor = System.Drawing.Color.Blue; - this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.textBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBox2.ForeColor = System.Drawing.Color.White; - this.textBox2.Location = new System.Drawing.Point(120, 381); - this.textBox2.Multiline = true; - this.textBox2.Name = "textBox2"; - this.textBox2.ReadOnly = true; - this.textBox2.Size = new System.Drawing.Size(950, 101); - this.textBox2.TabIndex = 1; - this.textBox2.TabStop = false; - this.textBox2.Text = "* Press any key to rewind time to before the crash.\r\n* Press ESC to shutdown yo" + - "ur computer. You will lose any\r\n unsaved data in all applications."; - // - // textBox3 - // - this.textBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); - this.textBox3.BackColor = System.Drawing.Color.Blue; - this.textBox3.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.textBox3.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBox3.ForeColor = System.Drawing.Color.White; - this.textBox3.Location = new System.Drawing.Point(450, 488); - this.textBox3.Multiline = true; - this.textBox3.Name = "textBox3"; - this.textBox3.ReadOnly = true; - this.textBox3.Size = new System.Drawing.Size(382, 34); - this.textBox3.TabIndex = 2; - this.textBox3.TabStop = false; - this.textBox3.Text = "Press any key to rewind _"; - // - // Win9XBSOD - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.Blue; - this.ClientSize = new System.Drawing.Size(1280, 720); - this.Controls.Add(this.textBox3); - this.Controls.Add(this.textBox2); - this.Controls.Add(this.textBox1); - this.Controls.Add(this.label1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; - this.Name = "Win9XBSOD"; - this.Tag = "gnoreFormOnTaskbar"; - this.Text = "Win9XBSOD"; - this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Win9XBSOD_KeyDown); - this.ResumeLayout(false); - this.PerformLayout(); - + this.label1 = new System.Windows.Forms.Label(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.panel1 = new System.Windows.Forms.Panel(); + this.panel1.SuspendLayout(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.BackColor = System.Drawing.Color.Silver; + this.label1.Font = new System.Drawing.Font("Perfect DOS VGA 437", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.ForeColor = System.Drawing.Color.Blue; + this.label1.Location = new System.Drawing.Point(444, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(147, 28); + this.label1.TabIndex = 0; + this.label1.Text = " Windows "; + // + // textBox1 + // + this.textBox1.BackColor = System.Drawing.Color.Blue; + this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBox1.Font = new System.Drawing.Font("Perfect DOS VGA 437", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox1.ForeColor = System.Drawing.Color.White; + this.textBox1.Location = new System.Drawing.Point(0, 54); + this.textBox1.Multiline = true; + this.textBox1.Name = "textBox1"; + this.textBox1.ReadOnly = true; + this.textBox1.Size = new System.Drawing.Size(947, 81); + this.textBox1.TabIndex = 0; + this.textBox1.TabStop = false; + this.textBox1.Text = "A fatal exception 0E has occured at 0028:C0034B23. The current application will " + + "be terminated."; + // + // textBox2 + // + this.textBox2.BackColor = System.Drawing.Color.Blue; + this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBox2.Font = new System.Drawing.Font("Perfect DOS VGA 437", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox2.ForeColor = System.Drawing.Color.White; + this.textBox2.Location = new System.Drawing.Point(0, 141); + this.textBox2.Multiline = true; + this.textBox2.Name = "textBox2"; + this.textBox2.ReadOnly = true; + this.textBox2.Size = new System.Drawing.Size(947, 101); + this.textBox2.TabIndex = 1; + this.textBox2.TabStop = false; + this.textBox2.Text = "* Press any key to rewind time to before the crash.\r\n* Press ESC to shutdown yo" + + "ur computer. You will lose any\r\n unsaved data in all applications."; + // + // textBox3 + // + this.textBox3.BackColor = System.Drawing.Color.Blue; + this.textBox3.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBox3.Font = new System.Drawing.Font("Perfect DOS VGA 437", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox3.ForeColor = System.Drawing.Color.White; + this.textBox3.Location = new System.Drawing.Point(332, 248); + this.textBox3.Multiline = true; + this.textBox3.Name = "textBox3"; + this.textBox3.ReadOnly = true; + this.textBox3.Size = new System.Drawing.Size(382, 34); + this.textBox3.TabIndex = 2; + this.textBox3.TabStop = false; + this.textBox3.Text = "Press any key to rewind _"; + // + // panel1 + // + this.panel1.Controls.Add(this.label1); + this.panel1.Controls.Add(this.textBox3); + this.panel1.Controls.Add(this.textBox1); + this.panel1.Controls.Add(this.textBox2); + this.panel1.Location = new System.Drawing.Point(this.Width - 475, this.Height - 141); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(950, 282); + this.panel1.TabIndex = 3; + // + // Win9XBSOD + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.Blue; + this.ClientSize = new System.Drawing.Size(1280, 720); + this.Controls.Add(this.panel1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Name = "Win9XBSOD"; + this.Tag = "gnoreFormOnTaskbar"; + this.Text = "Win9XBSOD"; + this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Win9XBSOD_KeyDown); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.ResumeLayout(false); + } #endregion @@ -125,5 +130,6 @@ internal System.Windows.Forms.TextBox textBox1; internal System.Windows.Forms.TextBox textBox2; internal System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Panel panel1; } } \ No newline at end of file diff --git a/TimeHACK.Engine/Template/Win9XBSOD.cs b/TimeHACK.Engine/Template/Win9XBSOD.cs index 662812b..519315e 100644 --- a/TimeHACK.Engine/Template/Win9XBSOD.cs +++ b/TimeHACK.Engine/Template/Win9XBSOD.cs @@ -17,6 +17,7 @@ namespace TimeHACK.Engine.Template public Win9XBSOD() { InitializeComponent(); + this.panel1.Location = new Point(this.ClientSize.Width / 2 - 475, this.ClientSize.Height / 2 - 141); } private void Win9XBSOD_KeyDown(object sender, KeyEventArgs e) diff --git a/TimeHACK.Engine/Template/Win9XBSOD.resx b/TimeHACK.Engine/Template/Win9XBSOD.resx index 1af7de1..29dcb1b 100644 --- a/TimeHACK.Engine/Template/Win9XBSOD.resx +++ b/TimeHACK.Engine/Template/Win9XBSOD.resx @@ -1,120 +1,120 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + \ No newline at end of file diff --git a/TimeHACK.Engine/bin/Release/TimeHACK.Engine.dll b/TimeHACK.Engine/bin/Release/TimeHACK.Engine.dll index 7bf2455..f873219 100644 Binary files a/TimeHACK.Engine/bin/Release/TimeHACK.Engine.dll and b/TimeHACK.Engine/bin/Release/TimeHACK.Engine.dll differ diff --git a/TimeHACK.Engine/bin/Release/TimeHACK.Engine.pdb b/TimeHACK.Engine/bin/Release/TimeHACK.Engine.pdb index 418f3b6..39d11b7 100644 Binary files a/TimeHACK.Engine/bin/Release/TimeHACK.Engine.pdb and b/TimeHACK.Engine/bin/Release/TimeHACK.Engine.pdb differ diff --git a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.csproj.GenerateResource.Cache b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.csproj.GenerateResource.Cache index 12afdd4..e6e04ba 100644 Binary files a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.csproj.GenerateResource.Cache and b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.csproj.GenerateResource.Cache differ diff --git a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.csprojResolveAssemblyReference.cache b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.csprojResolveAssemblyReference.cache index 138bee0..2e60c1a 100644 Binary files a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.csprojResolveAssemblyReference.cache and b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.csprojResolveAssemblyReference.cache differ diff --git a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.dll b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.dll index 7bf2455..f873219 100644 Binary files a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.dll and b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.dll differ diff --git a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.pdb b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.pdb index 418f3b6..39d11b7 100644 Binary files a/TimeHACK.Engine/obj/Release/TimeHACK.Engine.pdb and b/TimeHACK.Engine/obj/Release/TimeHACK.Engine.pdb differ -- cgit v1.2.3