How to compile Windows XP / Server 2003 code from the leak

I suppose a “Last Dance” of a thread should be appropriate.

So, you’ve gotten your hand on that mighty XP SP1 / Server 2003 code from 4chan somehow and are wondering what you can do with it? well i may have some info for you.

First off, this most of the code will compile, but most (if not all) code for winlogon.exe is missing (although sunlogon is present but does not fix any of the issues presented by the absence of the winlogon code) and thus the Software Liscensing won’t compile, and that will also cause parts of the setup to not compile. All of that which means you won’t be able to generate an iso (using pbuild in NT\tools\postbuildscripts\pbuild.cmd) (for now). Don’t try to compile this code in x64 windows as there are parts of it which the compiler (NT\tools\razzle.cmd) will need NTVDM and i suspect whatever hacky version of NTVDM for x64 will most likely not work. Ideally, compile this under any Windows XP version or Server 2003 (preferably non R2, SP1).

With that out of the way, we can start by setting up razzle. Thankfully, razzle will do pretty much the entire work for you, however, if you wish, setenv.cmd will appear in notepad the first time you run razzle and you can find REM path=%path%; <your path goes here> in the bottom of the file. Just remove REM from before path, save, close the notepad window and you should be good to go.

Now we get into actually compiling the code. For this, open a CLEAN cmd window (with nothing on it) and run razzle (free) (architecture) offline:

  • razzle free offline will compile code in fre instead of chk (debug). If you want to compile chk for whatever reason, just remove free and it’ll be razzle offline

  • If you wish to compile in another architecture:
    razzle (free) win32 offline: Will compile x86 code under amd64/ia64 systems (doesn’t work on x86 windows)
    razzle (free) offline: Will (try) to compile the binaries in whatever architecture you are in. Not sure how ia64 or amd64 works.
    razzle (free) arm offline: Will compile in ARM. Presumably for pocketpc?

If everything was done right, you should see a successful build environment: image
cue.pri is to be ignored.


To actually compile the code, in the same window that you did razzle, navigate to the directory you want to compile in the source (or if you want to compile the whole source ((will spit out errors, it’s normal, it isn’t the full source thus some components fail to compile)), just compile the \NT\ folder), and run either build /D, bz or bcz (Build /D will build with a full dependency check, bz will compile without a dependency check and bcz will build clean without a dependency check):


Building mspaint

When you build something, the output will be on the root of the drive where you extracted the source, on a folder with the name “binaries.architecture(fre/chk)”. In the case of x86fre, it’s “binaries.x86fre”:


Final product:


Custom build number

Warning about building the entire thing: Depending on your hard drive and cpu, it may take up to 8 or 10 hours, some with better hard drive can compile as fast as 3 to 5 hours. Keep in mind compiling stuff like explorer may require you to build the entire shell due to required libraries by explorer that get compiled with the shell and that if not build, will fail to compile the executable.

Note about candy: It’s uncompilable (normally, at least). Don’t ask me how to compile it.

7 Likes

Bump: made my compiled kernel and hal do things:

well, how to get the cod- banned because asking for personal info.

This is so cool :smile:

It’s publicly linked via twitter and 4chan, so it’s pretty easy to google up right now.

send the download

after going to the most weird social media (4channel) i got it!

i’ll send it only to you, do not leak it.

anyone cared for reviving online games, that microsoft had shutdown (look into misc/microsoft-gaming-zone-d6f8312.7z)

where is it


Someone made the 2000 bootscreen work on xp and server 2003 (entirely), with a lot of help from them i managed to get it working here

(proof it boots to windows xp)

I’ve been exploring this for a while now, it’s so fun to see programmer comments from ~20 years ago on individual programs and scripts. It’s also weird to see stuff that was left out, like a champagne colour scheme in the luna theme, which I’m trying to figure out how to enable.

We should assemble on Discord or something to see what else we can find, could be a fun little project :slight_smile:

1 Like

The champagne scheme seems to be in watercolor, luna, mallard and even candy. You probably can’t enable it unless you had the bitmaps for it.

1 Like

Yeah I noticed that after posting it. I thought maybe because it changes colour values numerically, it doesn’t need any bitmaps, but I’m probably wrong.

;FromColor1 = 210 213 206
;ToColor1 = 210 20 20
;FromColor2 = 190 250 190
;ToColor2 = 250 220 220

It seems to be changing values, so I wonder what would happen if it was uncommented?

1 Like

I tried uncommenting it and it did nothing. Champagne didn’t even appear. I did notice, however, that packthem had an argument to color shift images however i’m not sure how that would work?

1 Like

I’ll have a look, I’m quickly just checking the RGB values to see what it’s actually doing.

Color1 Before:
image

Color1 After:
image


Color2 Before:
image

Color2 After:
image

Hmm, interesting. What do you think?

Pretty non-sensical. I’d think champagne would be some form of light-gold colored theme.

Yeah thats true, it makes no sense aha. It seems to be replacing colours from the older watercolour theme in previous beta Whistler builds, so maybe it’s just a different colour scheme for the older theme that was never removed from the .ini file?

Have you found anything else? I’ve skimmed through a lot and I’m hoping to start doing some compiling and experimenting tomorrow lmao

Just warning, pbuild.bat will not do anything if you have build errors. Good luck not getting any.

UPDATE: Windows Server 2003 seems to be (almost) fully compilable (but enough to make a working operating system):



I’m having my own hand at this, so right now i’m just burning through the Server 2003 source tree.
2 Likes

imo it’s more of a forum, I mean, it’s a imageboard

yeah maybe…someone said that he has the download link of the leak,but he never said it. @nicolas_sousa can you share it now