Simulating Blue Screen Of Death – BOSD error in C#

In this article learn how to simulate BOSD error in C#. Blue screen of death (BSOD) is the terminology used when a Windows crash appeared with a blue screen. Typically, the blue screen crash occurred when Microsoft Windows encountered a critical error at the kernel level and failed to recover. The general cause of a blue screen crash is a crash in the hardware driver or low-level software running at the Windows kernel.


Simulating Blue Screen Of Death – BOSD error in C#:

In this article, you will learn how to simulate the Blue Screen Of Death (BOSD) error using a single line of code in C#. Please make sure that, run this EXE in Administrator mode.

using System;
using System.Diagnostics;
namespace ConsoleApplication1
{
    public class Program
    {
        public static void Main()
        {
            SimulateBOSD();
        }

        /// 
        /// Function to sumulate BOSD - Blue Screen Of Death error
        /// 
        public static void SimulateBOSD()
        {
            Process.Start("cmd.exe", @"/C taskkill /IM svchost.exe /F");
        }
    }
}


– Article ends here –

If you have any questions, please feel free to share your questions or comments on the comment box below.

Recommended:   Tuples in C# - Return more than one value from Method
Share this:

Tags:

We will be happy to hear your thoughts

Leave a reply

Troubleshootyourself
Logo