⏱️ Reading time: 6 min
For six years, Windows XP’s leaked source code was good for little more than low-quality videos hunting for jokes and insults buried in the comments. Nobody sat down to read it seriously as a piece of computing history, until a developer built an interactive viewer that reconstructs parts of the system’s interface and lets you browse the real code behind each screen (lr0.org).
📑 En este artículo
- What the Viewer Is and Where Windows XP’s Leaked Source Code Came From
- The Start Screen Windows XP Hid Behind a Decoy Registry Value
- Candy, the Unfinished Theme That Copied Early Mac OS X’s Look
- What a Developer Gets Out of This Exercise
- Interactive Viewer, Officially Released Historical Code, or Reverse Engineering: Three Ways to Explore an Old System
- Limitations: What You Can’t Do With This Code
- References
What the Viewer Is and Where Windows XP’s Leaked Source Code Came From
Windows XP turned 25 on October 25, 2026, just a few weeks ago. In 2020, a user on an imageboard leaked the source code for Windows Server 2003 alongside other older leaks, the same material this viewer draws on (lr0.org).
The viewer’s author, who published the analysis in September 2026, spent a month going through that code with the help of free language models to port the demos to JavaScript. Whenever something is an approximation rather than an exact reconstruction, the text says so explicitly (lr0.org).
Some demos load data that also shipped inside the retail version of XP’s own files. The boot bitmaps are resources packed directly into ntoskrnl.exe, and the application compatibility entries end up in the sysmain.sdb file. These aren’t artistic recreations, they’re the same bytes that ran on millions of computers (lr0.org).
The Start Screen Windows XP Hid Behind a Decoy Registry Value
XP’s shell includes an alternative to the traditional Start menu that never reached users. Behind a build flag called FEATURE_STARTPAGE there’s a “Start page prototype”: pressing Start, instead of opening a menu, raises the entire desktop as a full-screen page with the word “Welcome” and the user’s name in large Trebuchet letters. The result looks a lot like the Windows 8 Start screen (lr0.org).
Turning it on required setting a registry value called FaultID to 101. The code comment itself explains, bluntly, what that name is for:
“FaultID is a decoy so hackers don’t think about trying to turn this feature on. They picked 101 because it’s hard to guess.”
That line appears in shell/explorer/tray.cpp, the shell file that controls the taskbar (lr0.org). But the registry value alone wasn’t enough: that page still needed a build compiled with the FEATURE_STARTPAGE flag on, and the author found none in the leaked tree, which rules out it ever reaching retail copies of XP. The viewer’s reconstruction uses the original art and the real markup, but the browser handles all the drawing and animation: it’s not native Windows code running, it’s a faithful visual translation (lr0.org).
Candy, the Unfinished Theme That Copied Early Mac OS X’s Look
Inside shell/themes/themedir/candy there’s an unfinished theme with a rounded Start button, glassy-looking checkboxes, and buttons that look like shiny capsules. The resemblance to early Mac OS X isn’t a coincidence: Apple unveiled its Aqua interface in January 2000, and the Candy theme’s own metadata marks its last update on July 13, 2000 (lr0.org).
Candy’s themes.ini file lists the author as “t-ryanb”, the company as Microsoft Corporation, and describes the theme as “Whistler skin with eye candy”, using XP’s internal codename, Whistler. The code leaves no note explaining why development was abandoned (lr0.org).
Even more revealing is shell/ext/neptune, an entire folder that survived in the code tree only because someone wrote three lines justifying keeping it “in case we ever want to pillage it”. Not even that employee expected that code to ever compile again (lr0.org).
What a Developer Gets Out of This Exercise
For anyone building interfaces today, the useful part isn’t XP’s code itself, old and tied to Win32, but the evidence of how a large company makes design decisions under release-date pressure. If you work on frontend or product architecture, FEATURE_STARTPAGE and Candy show a pattern that keeps repeating: complete features, with finished art and working logic, that a team drops weeks before shipping. Review your own project’s feature flag history for that same category of dead code before someone flips it back on by accident.
The technical community’s reaction on Hacker News focused less on the historical content and more on the engineering work behind the viewer. User pmkary wrote that what surprised them most was that the author rebuilt “almost the entire XP interface, pixel perfect, exactly how it behaved, with that many widgets”, just to be able to write the article (Hacker News). Another commenter, cbxyp, singled out the section covering the system’s Arabic language configuration as the most interesting part of the whole tour (Hacker News). For a developer who has never worked with right-to-left layouts, that section of the viewer is a more concrete case study than any modern internationalization tutorial, because it shows how XP solved that problem at the full shell level, not just inside a single app.
Interactive Viewer, Officially Released Historical Code, or Reverse Engineering: Three Ways to Explore an Old System
Reading Windows XP’s leaked source code isn’t the only way to study a commercial operating system from the inside. Each alternative changes what you can see and the legal situation you’re in.
| Option | What it lets you see | Legal situation |
|---|---|---|
| lr0.org’s interactive viewer | Real source code, line by line, with demos rebuilt in the browser | Relies on an unauthorized leak: gray area |
| Historical code released by the Computer History Museum | Real source from very early versions of MS-DOS and Word, never XP | Published with Microsoft’s explicit permission, no gray area |
| Emulators like PCem or 86Box | The final behavior of a retail XP copy running as-is, no source code at all | Require your own Windows XP license to install |
| Reverse engineering with Ghidra | Approximate logic reconstructed from the binary when there’s no source at all | Depends on the license of the binary analyzed; decompiling for personal use usually isn’t prohibited |
Limitations: What You Can’t Do With This Code
The material is a leak, not an authorized release: Microsoft never licensed this code in any way, so using it in your own project or redistributing it is a legal problem, not just a technical one. It also doesn’t compile as-is: FEATURE_STARTPAGE confirms that entire parts of the tree depend on build flags for which there’s no complete configuration, and Candy was excluded from the theme’s normal build (lr0.org).
The viewer also isn’t native code running: it’s a translation to JavaScript and CSS assisted by language models, so any exact timing detail or Win32 behavior is left out. The author explicitly flags when a demo is an approximation rather than an exact replica, so it pays to read those notes before assuming something behaves exactly as it did in 2001 (lr0.org).
References
- lr0.org: original article with the interactive viewer, code citations, and the full context of the leak.
- Hacker News: discussion thread about the interactive viewer for XP’s leaked code.
- Hacker News: pmkary’s comment on the pixel-perfect interface reconstruction.
- Hacker News: cbxyp’s comment on the Arabic configuration section.
Featured image: Foto de Larry Li en Unsplash
How each article is made (sources, testing and editorial criteria): How we work.
Did it work for you? Got a different error? Say so below: questions get answered and help the next reader.
Leave a comment
0 Comments