Invoke Blue Screen of Death using Managed Code

后端 未结 11 2186
轮回少年
轮回少年 2020-12-30 01:25

Just curious here: is it possible to invoke a Windows Blue Screen of Death using .net managed code under Windows XP/Vista? And if it is possible, what could the example code

11条回答
  •  自闭症患者
    2020-12-30 02:01

    I do not know if it really works and I am sure you need Admin rights, but you could set the CrashOnCtrlScroll Registry Key and then use a SendKeys to send CTRL+Scroll Lock+Scroll Lock.

    But I believe that this HAS to come from the Keyboard Driver, so I guess a simple SendKeys is not good enough and you would either need to somehow hook into the Keyboard Driver (sounds really messy) or check of that CrashDump has an API that can be called with P/Invoke.

    http://support.microsoft.com/kb/244139

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters
    Name: CrashOnCtrlScroll
    Data Type: REG_DWORD
    Value: 1
    Restart

提交回复
热议问题