|
March 26, 2006
The fun of deconstructing foreign resources
In computers as well as life, some of the most minor and nitpicky annoyances can be a real hassle to fix. And if, like me, you sometimes have an irresistible tendency to get to the bottom of a problem, you can end up spending way too much time on something utterly inconsequential. So it was with my computer's new hard drive and new (Windows XP) OS. Probably because I have an old motherboard, the new OS installation sees this computer as being non-ACPI compliant, and the only way I might be able to fix that would be to reinstall again, which isn't worth it considering the trouble I went through installing it the first time around. Besides, the only real consequence of the ACPI issue is that when I shut the computer down all the way, I have to shut down Windows and then turn off the computer switch on the case. Not a big deal, really -- except I found myself annoyed by a very odd detail -- the display of the phrase, "It is now safe to turn off your computer." I don't mind being saddled with the annoyance of having to push the button, but something about the presence of the mini-lecture added to the process each time made me want to engage in vandalism. I thought it would be an easy thing to find the phrase and change it. Think again. After way too much research into a very unfamiliar area, I learned that it's not text, but a sort of image known as a "resource." And that is located inside a vital part of the operating system called the kernel. This takes the form of a file called ntoskrnl.exe and it isn't designed to be trifled with. You mess it up, and your computer will be rendered unbootable. However, in the process of learning about this, I discovered a cottage industry devoted to "kernel hacking." The ntoskrnl.exe file is the location of the Windows XP bootscreen image, and there are several ways to edit this image and replace it with a variety of alternative images. And the alternatives abound. (There are hundreds, if not thousands, and if you don't like them you can make your own. However, if you insist on making your own image the old-fashioned way, you need to follow detailed instructions using a hexadecimal editor like this.) For some, the trouble seems to be well worth it. The truly paranoid, for example, might want to imagine (or make their friends imagine) that they're under surveillance by the FBI. And the Masons:
(There's also one for the CIA, of course....) Dragons are available for fantasy fans and those who are teenagers at heart. I especially liked these two:
(Why do I keep having product placement issues?) But none of that satisfied my irrational craving to change Microsoft's stultifying safety reminder. (Something no one in his right mind would be interested in doing -- which means I probably ought to be more concerned with my mental health.) Sigh. For the truly dedicated few, there are still plenty of sites dedicated to old-fashioned manual kernel hacking, and at one of them in Germany, I was able to download prehacked German kernels. I found a wonderful piece of freeware called Resource Hacker™, which is described as: ...a utility to view, modify, add, rename and delete resources in Win32 executables and resource files. Incorporates an internal resource compiler and decompiler. Works on Win9x, WinNT, Win2000 and WinXP.This allowed me to carefully unpack the German kernel, until I found the location of the "It is now safe to turn off your computer" resource. Making a copy of my computer's kernel (it's not a good idea to install a strange kernel), I was able to edit the offending "resource" by substituting the German safety command image in place of the English one. Renaming/replacing the ntoskrnl.exe file had to be done in "safe mode" of course...) So now when I shut down Windows, instead of getting the safety lecture in English, I see this: "Sie können den Computer jetzt ausschalten."Yawohl! That's better! To explain why would absurdly complicate the simply absurd. posted by Eric on 03.26.06 at 02:19 PM |
|
March 2007
WORLD-WIDE CALENDAR
Search the Site
E-mail
Classics To Go
Archives
March 2007
February 2007 January 2007 December 2006 November 2006 October 2006 September 2006 August 2006 July 2006 June 2006 May 2006 April 2006 March 2006 February 2006 January 2006 December 2005 November 2005 October 2005 September 2005 August 2005 July 2005 June 2005 May 2005 April 2005 March 2005 February 2005 January 2005 December 2004 November 2004 October 2004 September 2004 August 2004 July 2004 June 2004 May 2004 April 2004 March 2004 February 2004 January 2004 December 2003 November 2003 October 2003 September 2003 August 2003 July 2003 June 2003 May 2003 May 2002 See more archives here Old (Blogspot) archives
Recent Entries
War For Profit
How trying to prevent genocide becomes genocide I Have Not Yet Begun To Fight Wind Boom Isaiah Washington, victim Hippie Shirts A cunning exercise in liberation linguistics? Sometimes unprincipled demagogues are better than principled activists PETA agrees -- with me! The high pitched squeal of small carbon footprints
Links
Site Credits
|
|