Home
%3CLINGO-SUB%20id%3D%22lingo-sub-723977%22%20slang%3D%22en-US%22%3E%E2%80%9CBlue%20Screens%E2%80%9D%20in%20Designer%20Colors%20with%20One%20Click%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-723977%22%20slang%3D%22en-US%22%3E%0A%20%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CSTRONG%3E%20First%20published%20on%20TechNet%20on%20Jan%2009%2C%202011%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%3CP%3EMy%20%3CA%20href%3D%22http%3A%2F%2Fblogs.technet.com%2Fb%2Fmarkrussinovich%2Farchive%2F2010%2F12%2F14%2F3374820.aspx%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20last%20blog%20post%20%3C%2FA%3E%20described%20how%20to%20use%20local%20kernel%20debugging%20to%20change%20the%20colors%20of%20the%20Windows%20crash%20screen%2C%20also%20known%20as%20the%20%E2%80%9Cblue%20screen%20of%20death%E2%80%9D.%20No%20doubt%20many%20of%20you%20thought%20that%20showing%20off%20a%20green%20screen%20of%20death%20or%20red%20screen%20of%20death%20to%20your%20friends%20and%20family%20would%20be%20fun%2C%20but%20the%20steps%20involved%20too%20complicated.%3C%2FP%3E%0A%20%20%3CP%3E%3CA%20href%3D%22http%3A%2F%2Fwww.alex-ionescu.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAlex%20Ionescu%20%3C%2FA%3E%20%2C%20one%20of%20my%20coauthors%20on%20%3CA%20href%3D%22http%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Fsysinternals%2Fbb963901%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Windows%20Internals%2C%205th%20Edition%20%3C%2FA%3E%20(he%E2%80%99s%20also%20coauthoring%20the%206th%20edition%20with%20me%20and%20%3CA%20href%3D%22http%3A%2F%2Fwww.solsem.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Dave%20Solomon%20%3C%2FA%3E%20%2C%20which%20covers%20Windows%207%20and%20Windows%20Server%202008%20R2%20%E2%80%93%20scheduled%20for%20release%20this%20summer)%2C%20suggested%20that%20we%20make%20it%20easy%20for%20people%20to%20enjoy%20blue%20screens%20of%20any%20color.%20We%20did%20so%20by%20modifying%20%3CA%20href%3D%22http%3A%2F%2Fdownload.sysinternals.com%2Ffiles%2FNotMyFault.zip%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Notmyfault%20%3C%2FA%3E%20%2C%20a%20buggy%20driver%20demonstration%20tool%20that%20I%20wrote%20for%20the%20book%20and%20my%20crash%20dump%20analysis%20presentations.%20Simply%20make%20your%20color%20section%20in%20the%20new%20BSOD%20color%20picker%20dialog%2C%20press%20the%20%E2%80%9CDo%20Bug%E2%80%9D%20button%2C%20and%20enjoy%20your%20creation%3A%3C%2FP%3E%0A%20%20%3CP%3E%3CIMG%20alt%3D%22image%22%20border%3D%220%22%20height%3D%22451%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fcfs-file.ashx%2F__key%2FCommunityServer-Blogs-Components-WeblogFiles%2F00-00-00-52-36-metablogapi%2F0601.image_5F00_thumb_5F00_28A7EF37.png%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121279i85726C4F0444ACE9%22%20style%3D%22background-image%3A%20none%3B%20border-right-width%3A%200px%3B%20padding-left%3A%200px%3B%20padding-right%3A%200px%3B%20display%3A%20inline%3B%20border-top-width%3A%200px%3B%20border-bottom-width%3A%200px%3B%20border-left-width%3A%200px%3B%20padding-top%3A%200px%22%20title%3D%22image%22%20width%3D%22550%22%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3EHere%E2%80%99s%20the%20%E2%80%9Cblue%20screen%E2%80%9D%20that%20results%20from%20the%20above%20color%20choice%3A%3C%2FP%3E%0A%20%20%3CP%3E%3CIMG%20alt%3D%22image%22%20border%3D%220%22%20height%3D%22416%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fcfs-file.ashx%2F__key%2FCommunityServer-Blogs-Components-WeblogFiles%2F00-00-00-52-36-metablogapi%2F0028.image_5F00_thumb_5F00_344A47D7.png%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121280i409A1BE47A3D5FFD%22%20style%3D%22background-image%3A%20none%3B%20border-right-width%3A%200px%3B%20padding-left%3A%200px%3B%20padding-right%3A%200px%3B%20display%3A%20inline%3B%20border-top-width%3A%200px%3B%20border-bottom-width%3A%200px%3B%20border-left-width%3A%200px%3B%20padding-top%3A%200px%22%20title%3D%22image%22%20width%3D%22554%22%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3EIt%E2%80%99s%20as%20easy%20as%20that%20-%20there%E2%80%99s%20no%20need%20to%20tweak%20large-page%20settings%20or%20perform%20any%20other%20system%20configuration%20changes%20like%20those%20described%20in%20%3CA%20href%3D%22http%3A%2F%2Fblogs.technet.com%2Fb%2Fmarkrussinovich%2Farchive%2F2010%2F12%2F14%2F3374820.aspx%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20my%20last%20blog%20post%20%3C%2FA%3E%20.%3C%2FP%3E%0A%20%20%3CP%3EHow%20does%20it%20work%3F%20We%20extended%20Notmyfault%E2%80%99s%20kernel-mode%20driver%20(named%20Myfault.sys%2C%20as%20seen%20on%20the%20crash%20screen%2C%20to%20highlight%20the%20fact%20that%20user-mode%20code%20cannot%20directly%20cause%20a%20system%20crash)%20to%20register%20a%20%E2%80%9C%20%3CA%20href%3D%22http%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fff553110(VS.85).aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20bugcheck%20callback%20%3C%2FA%3E%20%E2%80%9D.%20When%20the%20system%20crashes%20it%20invokes%20driver-registered%20callbacks%20so%20that%20they%20can%20add%20data%20to%20the%20crash%20dump%20that%20can%20help%20troubleshooters%20get%20information%20about%20device%20or%20driver%20state%20at%20the%20time%20of%20a%20crash.%20The%20Myfault.sys%20callback%20executes%20just%20after%20the%20blue%20screen%20paints%20and%20changes%20the%20colors%20to%20the%20ones%20passed%20to%20it%20by%20Notmyfault%20by%20changing%20the%20default%20VGA%20palette%20entries%20used%20by%20the%20Boot%20Video%20driver.%3C%2FP%3E%0A%20%20%3CP%3ENow%20with%20no%20awkward%20and%20error-prone%20fiddling%20in%20a%20kernel%20debugger%2C%20you%20can%20impress%20your%20friends%20and%20family%20with%20a%20blue%20screen%20painted%20in%20your%20favorite%20colors%20(though%20they%20might%20be%20even%20more%20impressed%20if%20you%20change%20the%20colors%20by%20fiddling%20in%20the%20kernel%20debugger)!%3C%2FP%3E%0A%20%20%3CP%3ETo%20download%20the%20latest%20copy%20of%20Notmyfault%20(both%2032-bit%20and%2064-bit%20versions)%20click%20%3CA%20href%3D%22http%3A%2F%2Fdownload.sysinternals.com%2Ffiles%2FNotMyFault.zip%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20here%20%3C%2FA%3E%20.%3C%2FP%3E%0A%20%0A%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-723977%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20TechNet%20on%20Jan%2009%2C%202011%20My%20last%20blog%20post%20described%20how%20to%20use%20local%20kernel%20debugging%20to%20change%20the%20colors%20of%20the%20Windows%20crash%20screen%2C%20also%20known%20as%20the%20%E2%80%9Cblue%20screen%20of%20death%E2%80%9D.%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-723977%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMark%20Russinovich%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft
First published on TechNet on Jan 09, 2011

My last blog post described how to use local kernel debugging to change the colors of the Windows crash screen, also known as the “blue screen of death”. No doubt many of you thought that showing off a green screen of death or red screen of death to your friends and family would be fun, but the steps involved too complicated.

Alex Ionescu , one of my coauthors on Windows Internals, 5th Edition (he’s also coauthoring the 6th edition with me and Dave Solomon , which covers Windows 7 and Windows Server 2008 R2 – scheduled for release this summer), suggested that we make it easy for people to enjoy blue screens of any color. We did so by modifying Notmyfault , a buggy driver demonstration tool that I wrote for the book and my crash dump analysis presentations. Simply make your color section in the new BSOD color picker dialog, press the “Do Bug” button, and enjoy your creation:

image

Here’s the “blue screen” that results from the above color choice:

image

It’s as easy as that - there’s no need to tweak large-page settings or perform any other system configuration changes like those described in my last blog post .

How does it work? We extended Notmyfault’s kernel-mode driver (named Myfault.sys, as seen on the crash screen, to highlight the fact that user-mode code cannot directly cause a system crash) to register a “ bugcheck callback ”. When the system crashes it invokes driver-registered callbacks so that they can add data to the crash dump that can help troubleshooters get information about device or driver state at the time of a crash. The Myfault.sys callback executes just after the blue screen paints and changes the colors to the ones passed to it by Notmyfault by changing the default VGA palette entries used by the Boot Video driver.

Now with no awkward and error-prone fiddling in a kernel debugger, you can impress your friends and family with a blue screen painted in your favorite colors (though they might be even more impressed if you change the colors by fiddling in the kernel debugger)!

To download the latest copy of Notmyfault (both 32-bit and 64-bit versions) click here .