programmatically trigger BSOD

后端 未结 7 1046
闹比i
闹比i 2020-12-08 01:40

Purely for academic reasons.

is it possible to programmatically cause a BSOD to occur under windows xp/windows 7 in C#/.NET.

I\'m suggesting there\'s got to

相关标签:
7条回答
  • 2020-12-08 02:13

    You could make the process critical and then kill it

    using System;
    using System.Runtime.InteropServices;
    

    then:

    [DllImport("ntdll.dll", SetLastError = true)]
    private static extern void RtlSetProcessIsCritical(UInt32 v1, UInt32 v2, UInt32 v3);
    System.Diagnostics.Process.EnterDebugMode();
    RtlSetProcessIsCritical(1, 0, 0);
    System.Diagnostics.Process.GetCurrentProcess().Kill();
    
    0 讨论(0)
提交回复
热议问题