Skip to content

Instantly share code, notes, and snippets.

@rurtubia
Last active August 29, 2015 14:19
Show Gist options
  • Save rurtubia/7387685dc776bf8cea4a to your computer and use it in GitHub Desktop.
Save rurtubia/7387685dc776bf8cea4a to your computer and use it in GitHub Desktop.
BSOD Imitation, uses the Console Methods (BackgroundColor, ForegroundColor, Clear, WriteLine, ReadLine) ---- Imitación de Blue Screen of Death ('pantallazo azul') usando métodos de Console.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
//Changes the text and background colors.
Console.BackgroundColor = ConsoleColor.DarkBlue;
Console.ForegroundColor = ConsoleColor.White;
//Necessary to keep the colors on the whole window.
Console.Clear();
//Text
Console.WriteLine("A problem has been detected and windows has been shutdown to prevent damage \nto your computer.");
Console.WriteLine("\nThe problem seems to be caused by the following file: Windows.exe");
Console.WriteLine("\nPAGE_FAULT_IN_NONPAGED_AREA");
Console.WriteLine("\nIf this is the first time you've seen this stop error screen,");
Console.WriteLine("restart your computer. If this screen appears again, follow\nthese steps:");
Console.WriteLine("");
Console.WriteLine("\nCheck to make sure any new hardware or software is properly installed.");
Console.WriteLine("If this is a new installation, ask your hardware or software manufacturer");
Console.WriteLine("for any Windows updates you might need.");
Console.WriteLine("\nIf problems continue, disable or remove any newly installed hardware");
Console.WriteLine("or software. Disable BIOS memory options such as caching or shadowing.");
Console.WriteLine("\nTechnical information:");
Console.WriteLine("\n*** STOP: 0x00000050 (0xFD3094C2,0x00000001,0xFBFE7617,0x0000 0000)");
Console.WriteLine("\n*** SPCMDCON.SYS - Address FBFE7617 base at FBFE5000, DateStamp 3d6dd67c");
Console.ReadLine();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment