Windows XP turns 25 very soon.Windows XP anniversaryI was writing this in Sept 2026, as of time of editing, XP is 25 and many weeks old It came out on the 25th of October 2001, a lot of people learned what a computer is on it, maybe not for the best as I argued before.
Industry observers note that six years ago an image board user leaked Windows Server 2003 source code along with other older leaks and I was expecting to read some kind of analysis and people digging into it, perhaps someone finally validating claims about the NSA backdoor or some fun readings, kind of Computer History Museum stuff. I really enjoy reading historical code, especially now that most code I read is LLM generated, I was expecting someone doing something with that leak very soon, but so far all what I could find are low-quality videos showing funny comments in the source code and looking for curses.
I wanted to know what was going on, how they built it, because the development of Windows really predates a lot of the things I know about building software. So last month I started having inside looks into the source.
The demos in the blog post run the code visualized, with a great help of LLM free usage, I was able to port them to JavaScript, if I had to approximate something, the demo claims so. A few of them load data that also shipped inside retail XP files (for example the boot bitmaps are resources in ntoskrnl.exe, and the compatibility entries end up in sysmain.sdb).
Windows XP shell has an unshipped alternative to the familiar Start menu, behind a build flag called FEATURE_STARTPAGE, a full-screen "Start page prototype", written in DirectUI. Press Start and, instead of a menu, the desktop rises over your open windows as a page with "Welcome" and your name in large Trebuchet, reminded me a bit of the beloved Windows 8 Metro Start Menu. It stays off unless a registry value called FaultID is set to 101. The comments say FaultID is a decoy. They picked 101 because it would be hard to guess.
One detail if you were thinking of trying this on a copy of XP. Explorer checks FaultID. It still needs a build with FEATURE_STARTPAGE defined for there to be anything to switch on. I don't see one in the tree, which as far as I can tell rules out the page in retail XP.
In a recent development, for the version on my blog I had the original artwork and the markup for the page. The rest is a browser putting it on the screen. I put the familiar XP panel next to the reconstructed page.
I was talking about alternative Start menus, but even the Start button could have looked quite different. There is a theme under shell/themes/themedir/candy where you get a rounded Start button, glassy little radio buttons and push buttons that look like shiny capsules. It looks an awful lot like early Mac OS X to me, especially beside the blue and green of XP. Apple introduced Aqua in January 2000. The date in Candy's metadata is July 13, 2000, for the last enhancement.
Industry observers note that in the blog demo the pictures are from Candy and Luna. I put together the controls I had images for, so you can hold the button down or move the mouse over it, tick the checkbox, etc. The browser still does the layout and the text (on a smaller screen it's just a picture). There's been coverage of Candy since the 2020 leak. The source gives little indication why work on Candy stopped.
Selected Candy and Luna controls reconstructed from original bitmaps. Text and layout are browser-rendered. Candy is incomplete and excluded from the normal theme build.
Candy definitions · Original buttonsLuna definitions · Source manifest.
According to recent reports, there is actually a note of that kind in shell/ext/neptune, three lines somebody left to explain the continued existence of a whole directory. Even at the time they figured the code probably wouldn't compile. They hung on to it âif we ever want to pillage itâ.
According to recent reports, one thing they might have wanted again was the bit that lets you take files and folders in the shell and copy them to a WebDAV server. You even get the address of somebody's test server, http://aidanl:8088/dav/aidanl/. The little driver gathers up the files and folders, makes a DAVStorage object for that address and copies them into it.
Suppose all your data lived on the server. What would you keep on the PC? Ben Slivka, who did the RedShark prototype in 1998 with Joe Belfiore and Steve Capps, describes a secure cache you could work with even if the connection went down. In their Neptune service you'd organise your work into projects. Reading the mail from February 1999, I don't think the fight was really over the cache. Brad Schick opened the discussion by asking who Neptune should serve.
In a recent development, schick circulated a memo proposing a shift away from the existing Windows market. Brad Schick, February 7, 1999, page 4.
Slivka thought they were going to lose if they tried to win the Internet through Windows.
⦠win the Internet using Windows is a losing strategy.
He agreed with Schick and wanted separate mandates for the Windows and Internet teams. They could still work together where it helped both. Ben Slivka, February 10, 1999, page 3.
Brad Silverberg wanted the team to set its release schedule without taking on Windows's compatibility obligations.
⦠compatible with existing apps [â¦] windows release schedules â¦.
Recent findings suggest that silverberg asked whether Neptune would have to run applications like Office. He thought the project needed a separate name and an independent team so it could address the needs of connected consumers and ship without waiting for the next Windows release. He pointed to Internet Explorer as a precedent for releasing separately. Brad Silverberg, February 14, 1999, pages 2â3.
David Cole wanted the connected experience in Windows itself.
⦠simple connected user experience in Windows.
In a recent development, cole wanted that experience available to all Windows users and said the IE team was calling it IE 5.5. He used Neptune for the broader work of making PCs simpler and more useful. He supported doing both. David Cole, February 10, 1999, pages 3â4.
According to recent reports, some of the web stuff is even older. In multimedia/danim/doc/homepage there's Microsoft's homepage for ActiveVRML, and the bit of animation they used their web language for there was a blinking star. They had a much wider use in mind, you can see it in the 1996 research report. An image or a sound or some geometry could have a value that varied with time. If I were making an animation I could describe continuous motion and discrete events, then leave the work of producing the frames to the engine. The star on their page takes two definitions.
One is s0, the dim star, which waits for a delay and becomes s1. The other is s1, the bright star, which waits a quarter of a second and becomes s0 again. Those dated web graphics also have a place in the history of functional reactive programming. Conal Elliott wrote in 1997 that ActiveVRML was where both Fran and DirectAnimation came from. With Fran the idea went into Haskell and what we'd call functional reactive programming. With DirectAnimation you could use some of the same ideas alongside imperative programming from a mainstream language. That one ended up being bundled with Internet Explorer.
I reconstructed the homepage from its original images and the timings in that script.
Sources indicate that in July 1998 Microsoft proposed putting HTML on the faces of a cube. You could turn it to find something else to read, and the menu bars could bend out of your way. The name was Chromeffects and it was an add-on for Windows 98. You wrote the page in HTML and XML and got animation, sound and 3D from DirectX. Come November, Microsoft said it was stepping back to rethink Chromeffects after hearing from developers. Its Windows source sits in multimedia/danim/src/lm/chrome.
Outlook Express has, in inetcore/outlookexpress/oejunk, a machine-learned spam filter from 1998. Robert Rounthwaite's header describes a support vector machine that checks the mail as it comes in.
The model, junkmail.lko, is a plain text file with four constants for a sigmoid (the engine reads two of them), a threshold that's subtracted from the score before the sigmoid, three cut-offs for the sensitivity setting (the default, the strictest and the loosest; the two settings in between are halfway points), and 1,264 weighted features: 1,230 words and phrases to look for in the body, 22 in the subject, and 12 hand-written rules.
According to recent reports, in that file you can tell where a word has to appear by the number at the start of the feature. For example 1: is something to look for in the body of the message, 2: in the subject line, 5: is one of their hand-written rules. All the engine does with the features that turned up is total their weights and subtract the threshold. Have a look at the end of _DblDoSVMCalc and there's the conversion of that number x to 1/(1 + e^(cx + d)).
There happen to be two numbers in there worth looking up, cc = -5.825104 and dd = -3.615463. They're the constants this filter uses for what is now the standard Platt scaling of an SVM score into a probability. John Platt actually came up with the scaling for this filter if you go by David Heckerman's memoir. In the 1998 paper by Heckerman, Eric Horvitz, Susan Dumais and Mehran Sahami, the filter was naive Bayes. Many of the features are already there in the paper. The SVM did a better job, hence Platt's version in the source. It makes for a nice record of email at the time too, because FREE, MONEY, REMOVE, !!! and OPPORTUNITY were votes for junk, while EDU, THANKS and FORWARDED went the other way. The strongest feature they had was being addressed to you directly (-0.717).
It has been revealed that it never shipped switched on, because of a greeting card company. The filter was in the Outlook Express that came with the Internet Explorer 5 beta in 1998, off by default, and with its threshold turned towards "catch more" it sent Blue Mountain Arts' e-cards to the junk folder. Heckerman says his team promised a fix by the end of the week; before the week was out Blue Mountain sued, the press decided Microsoft was trying to kill a competitor, a court ordered Microsoft to help Blue Mountain's mail get through (Microsoft's statement, December 1998), and "the spam filter was promptly removed from Outlook Express".
Sources indicate that in XP's Outlook Express the settings page is still there. Put a non-zero value under the meaningless name bhgcc in HKLM\Software\Microsoft\Outlook Express\5.0, and a Junk Mail page appears in the message rules. Outlook Express checks once as it starts up (c_szRegJunkMailOn is the string "bhgcc", and Athena was Outlook Express's code name).
XP's setup deletes oejunk.dll and its model, junkmail.lko, when it installs Outlook Express, and the model is commented out of the install package under CONDITIONAL_JUNKMAIL. But XP's upgrade database lists an oejunk.dll among Internet Explorer 5's files and a 28,370-byte junkmail.lko among the system files of Windows 98 Second Edition, and the model in this tree is 27,099 bytes with Unix line endings, exactly 28,370 with Windows ones, with the same checksum setup records. So the filter a lawsuit took out of Outlook Express very probably went out anyway, switched off, with Windows 98 Second Edition in 1999. Microsoft finally shipped machine-learned spam filtering in MSN 8 in 2002, because, Heckerman writes, a programmer on that team found the old code and sneaked it in.
Of all the stories I had in mind when I started looking at the leak, the NSA one seemed the easiest to put a question to. A very odd name had once fallen out of a Microsoft binary. What did the thing with that name actually do?
That accusation is _NSAKEY. In 1999 a researcher poking at a Windows NT service pack found that the part of Windows that checks cryptographic modules carried two public keys, and that a leftover debug symbol had named the second one _NSAKEY. The possibility that Microsoft had given the NSA a separate signing key rapidly made news around the world. Microsoft said the second key was a backup in case the first was ever lost, and that its name came from work on export rules. The name alone couldn't establish who held the corresponding private key.
It has been revealed that now there's a source tree to put beside that story. The Windows code for verifying signatures on cryptographic providers calls the two production keys KEY and KEY2. It also distinguishes keys for development and test builds. The pair in the shipping configuration agrees with the number the researcher found in 1999.
Sources indicate that nothing around KEY2 calls it a backup, an escrow, a spare or the NSA's. I couldn't find the string nsakey in this tree. The change log starts in December 1994, records âIncreased signature key to 1024 bitsâ in April 1995 and âAdded Microsoft's signing keyâ that September. It doesn't say when or why the second one came along. Both are public keys for verifying signatures. Seeing them in Windows tells us nothing about decrypting somebody's data, and the public half doesn't identify the custodian of the private half. Microsoft's backup explanation fits what I found, but I can't prove it from this code.
In a recent development, I looked at the rest of the usual suspects too, with help. Windows does carry Microsoft's test root certificates. On an ordinary installation these were not trusted by default, and for HTTPS there is a dated comment, âOn July 26, 2000, disabled the use of the test rootâ. In the account code the cases I found turned out to belong to domain setup or to autologon configured by the administrator. The network destinations I identified included the crash reporter at watson.microsoft.com, Windows Update, time.windows.com and Passport. These were identifiable Microsoft services. I didn't find a hidden login or a covert reporting destination in the cases I examined.
There are places where the engineers recorded their security worries quite plainly. Comments in the C runtime, the kernel and the DNS server explain why particular features were withheld from ordinary builds. I also found a developer's removal note in the 64-bit Terminal Server source. It concerned an administrative feature absent from the 32-bit version most people ran. A note like that records what the developer wanted done. It doesn't settle what finally shipped. I found no evidence for the alleged backdoor in the code I examined.
Recent findings suggest that what you can find a government doing in Windows is deciding where people may encrypt things. NTLM once looked up the default locale in IsEncryptionPermitted. Standard French as the language or France as the country was enough for it to decline encryption. Whoever maintained the code put the paperwork right next to it, âpermission to remove FRANCE check obtained 08-21-1999â.
By the time of this source the routine returned true on every machine. The old test was still there, excluded from the build, and the description still said to check France. French rules had changed that March to allow the use and import of systems up to 128 bits under specified conditions. I don't know whose approval the note referred to in August. A function with practically nothing left to do had kept the date the restriction came out.
Sources indicate that an American export restriction survives in the Windows service for protecting an application's stored secrets, DPAPI. In GetSaltForExportControl the programmer describes the defect in the key Windows has just derived. The thing could have more than forty secret bits.
Industry observers note that the provider supplied the allowable amount of salt. Windows supplied fresh random bytes for it, then saved those bytes with the result, so whoever had the encrypted data had that part too. A provider without salt support gave the helper nothing to replace. It mattered which provider and key type were in use, and DPAPI here already defaulted to 3DES. On January 18, 2000 Microsoft announced that the relaxed American rules let it put 128-bit encryption in Windows 2000 for customers worldwide. There's a Mozilla announcement with the same date that I think puts the old regime rather well. People working on the browser could finally publish the security source and accept changes from developers abroad.
According to recent reports, the file responsible for the blue screen is base/ntos/ke/bugcheck.c, although if you go by what Mark Lucovsky put at the top of the file back in 1990 you would think you were reading stubs.c. KeBugCheck2 stops the other processors and takes over the display. The blue part is literally a rectangle, 640 by 480, and it sets white as the colour for printing on it.
Sources indicate that something I like about the big names printed on that screen is that you can go looking for the error message and be looking in exactly the right place and still find an empty line. Open base/ntos/nls/bugcodes.mc at 0x7A, for instance. That's an empty English message, one of 160 in a list of 227 fatal codes. The detail you need to know is in another program altogether, sdktools/mc, which builds the messages and substitutes the name when there's nothing else to use. Go down one entry to 0x7B (Windows can't find the disk it needs to start) and there's advice written for the user. When you get that one you don't see the name. Whether someone had intended to write all 160 messages and never got around to it, I have no idea.
In a recent development, another thing about looking up a blue screen is quite a lot of the diagnosis has happened before you ever get to see it. Suppose the original error was IRQL_NOT_LESS_OR_EQUAL, 0xA. KeBugCheck2 has the address of the instruction that went wrong. Its first checks are for instructions in the pool and system-PTE allocators, which can change the number to one of three codes saying a driver corrupted something. If it was an instruction in a driver you get DRIVER_IRQL_NOT_LESS_OR_EQUAL, 0xD1. There's another possibility, that the instruction really is in the kernel but the memory it touched belongs to a driver. For this one you get 0xD3 and the filename goes on screen.
It does much the same with a page fault. What you saw on the screen was already somebody's theory about whose fault it was. Now suppose the screen mentioned 0x0000008E. You restart and there's 1000008e in that little âWindows has recovered from a serious errorâ report. It was the same crash both times. XP, once it had finished drawing the screen, added a flag (0x10000000) to certain codes when writing out a small memory dump. In Microsoft's documentation you can find the second number under the old name with an _M on the end.
Sources indicate that there's at least one case where it knows exactly whom to blame. The PS/2 keyboard driver on a suitably configured XP machine let the operator request a crash dump. Its code is 0xE2, MANUALLY_INITIATED_CRASH. The English message reads âThe end-user manually generated the crashdump.â.
It has been revealed that how much of a graphics workstation could you get into a cheap PC? Microsoft's 1996 answer was Talisman, which saved some of the work of drawing a 3D scene by keeping pictures of the objects in it. Objects would be rendered into separate image layers. Between fresh 3D renders, hardware could move, rotate, scale and skew those layers, then composite them at the display's refresh rate.
The XP tree preserves substantial unfinished DirectDraw work for that model. ddsprite.c has over three thousand lines implementing SetSpriteDisplayList, that was checking transforms, filtering and alpha support, clipping sprites, and collecting the sprites from different windows into a master list for the driver. A nearby colour-key check in ddsckey.c was disabled with the explanation "Talisman overlay sprite might not use overlay surface!" But ddsprite.c is commented out of the source list, and the callback that would expose the operation is behind POSTPONED2.
John Carmack had tried a similar shortcut in Quake. In a 1997 interview he described saving a rendered model as a sprite and putting the same picture up again in the next frame. It worked for too few frames before they had to draw the model again. He also argued that faster, cheaper memory had weakened Talisman's original premise. Asked what Microsoft should do with it, he said, "It should just quietly go away.".
Industry observers note that even with Carmack's objection you can see how much work had already gone into it. For instance, each application could supply sprites, and Windows had to gather them up before giving the driver the list.
According to recent reports, by 2001 there were web pages in all sorts of places you wouldn't have thought to open in IE. User Accounts is one. The first-run screens, Help and Support, System Restore, Remote Assistance and the photo publishing wizards are others. Even the Find and Print Preview dialogs in IE use its engine this way. The pages are HTML with script that can ask C++ objects to do things for them. You see some of the pages loose on disk. For the ones built into DLLs and EXEs the resource scripts list 345 entries marked HTML, which includes things like a stylesheet or an image so you shouldn't read that as 345 pages. This is also where you run into a limit of what got leaked. JScript, VBScript, Windows Script Host, MSXML, you can read their interfaces, but try following one of those into the actual engine. In the case of XMLHTTP my one lead is a WinHTTP source file thanking the MSXML people for the code. The path it gives starts with inetcore\xml, which is missing.
In a recent development, there are 253 HTML files in base/ntsetup/oobe, where the first-run setup lives. The XP build uses them to make 122 pages. According to the notes they were ported "from the Millenium source tree", so there's some Windows Me you're looking at on your first XP boot. I don't know why these pages and their scripts all need a pass through the C preprocessor before they're ready for the CD. None has a #if or even a #include. About all I can see it doing here is stripping the comments. There are also 122 names the scripts on those pages can ask for on window.external. HasTablet, CalledFromMsn and InHighContrastMode are the sort of things setup wants to know. PlayBackgroundMusic is something it wants done. Twelve names give it another object, and for each of those some C++ programmer had to write the table saying which names that object answers to.
According to recent reports, take get_AllTimeZones. You might expect a list of names to fill the box with. It hands the page one string with the OPTION tags around all the time zones already, so into the select box it goes.
If you remember the little question mark that talked you through setup, its lines of dialogue account for 7,185 lines of JScript, including 751 calls to Agent_Speak. What do you do about the speech balloon in a language for which you haven't got a speech engine? In Chinese and Japanese they padded the line with zero-width spaces to give you time to read it. Even the music starts in JScript. A call to window.external.PlayBackgroundMusic() points an embedded Windows Media Player at title.wma. The design note wanted people to be able to develop a module âwith little help from OOBE developmentâ. PC makers even had an OEM API for replacing the question mark with a character they chose. The people writing the main page had plenty of trouble. Four times they explain in a comment that they had to resort to a hack to make the selected item in a menu visible. Farther on somebody has added âthese hacks dont work anymoreâ.
Recent findings suggest that user Accounts came out of the control-panel file nusrmgr.cpl as an HTML Application. That is a page you run as a program with mshta.exe. There's no browser window around it. You saw this one on Home or on a Professional machine outside a domain. On 64-bit Windows and in the other cases you got the old dialog. One detail I like in the HTML version is where it puts the window sizing. It asks for at most 730 by 530 pixels before the declaration that makes the page an application. If you reversed those two you'd see the window change size.
What became of an HTML attribute once the browser had read it? In this page scroll and scrollFlat set flags on the hosted browser. Others can go right down to an ordinary Win32 window style. Trident defines caption=yes as WS_CAPTION, though User Accounts doesn't use that one. The Franklin Gothic for the headings is in the page. To get the colours right under Luna, a page behaviour asks the theme manager for the current scheme and loads cpwebvw.css from the theme DLL. The blue, olive green and silver versions thus come with different instructions for colouring the same page.
One of the User Accounts tasks is an offer to associate your local login with a .NET Passport. The wizard could save the credentials, so the online identity would work for single sign-on. In WinInet, the Windows HTTP client, the constructor tests for Whistler, XP's name during development. It clears _fDisableTweener there and sets it on older systems. Clear the disable flag and Passport 1.4 is supported by default.
You still had to agree to the association in the wizard. For some idea why that particular offer was sitting next to the ordinary account settings, look at Microsoft's March 2001 announcement of HailStorm, subsequently .NET My Services. Passport was to establish who you were. Your calendar, contacts and documents could then be made available to programs on whichever device you were at, including an XP computer.
Sources indicate that the consumer service Microsoft meant to host itself was shelved in 2002. The New York Times spoke to Microsoft's Charles Fitzgerald about the change. Passport survived it. In 2005 the manufacturer's identity architect Kim Cameron made the distinction quite nicely. On MSN, Microsoft was already in a relationship with the customer. On another company's site neither the proprietor nor the customer particularly wanted to bring Microsoft into it. In Cameron's judgment, âPassport failed in its mission of being an identity system for the Internet.â The client code for that mission had made it into Control Panel.
Recent findings suggest that system Restore and Help and Support run on a small in-house framework called Mars, which wraps IE's engine in a window declared in XML. System Restore's window is one trusted Trident panel called Contents. It fills the window and loads start.htm from rstrui.exe.
System Restore's scriptable object, CRestoreShell, has called itself "merely a dummy ActiveX control" since the XP rewrite, a wrapper in front of the class that does the work. A behaviour on the pages cancels F5, Ctrl+N, dragging and text selection everywhere, and the context menu and Backspace outside text boxes.
Recent findings suggest that the calendar with the restore dates in bold is a general-purpose calendar behaviour from 1999, forked for System Restore with a numbered list of "Changes for SR UI" at the top. Help and Support uses five Mars panels, and its pages come from hcp://system/. It needed a fix inside IE itself. After a redraw bug moved its navigation bar a few pixels, IE6 learned to recognise the Help Center (a flag called _fInWindowsXP_HSS) and skip drawing a border for it. The email approving the fix is pasted into an interface file, ending "!!NEVER!! change GUID for SID_SMarsPanel and IMarsPanel." Remote Assistance is 69 more HTML files, under the code name Salem.
According to recent reports, XP was also moving away from all this. Windows 98, Me and 2000 drew folders with HTML templates called folder.htt, and XP replaced them with native task panes in DirectUI, the markup from the Start page prototype. If an administrator switched the old view back on, Explorer hashed a folder's template and compared it with 18 MD5 fingerprints of the stock 98, Me and 2000 ones, so it could swap those for the newly introduced view and leave customised ones alone. By SP1 even Add or Remove Programs had a DirectUI version, with the old HTML one still compiled in beside it.
According to recent reports, the browser's place inside Windows was also being negotiated in court. XP SP1 added Set Program Access and Defaults, the Add or Remove Programs page for choosing competing browsers and other programs and hiding access to Microsoft's equivalents. Microsoft's SP1 announcement explicitly ties these changes to its antitrust settlement. The implementation leaves a very literal trace. Hiding Internet Explorer sets the hidden and system attributes on iexplore.exe, while leaving it on disk. That decision then has to spread through the rest of the shell. The code that supplies Open With's applications checks for those attributes before offering IE.
In a recent development, "Consent decree UI" is a comment in the file-association code. A legal remedy has become a test of two filesystem attribute bits.
But another path in the same shell shows how much work it took to make a default browser mean what it noted. A music folder's task pane offered "Shop for music online". Its handler gets the shopping URL and passes it to the current shell browser.
_BrowseObject asks the current shell browser to navigate, with SBSP_NEWBROWSER requesting a fresh window. Following the call takes you through shdocvw into Windows's browser-frame machinery. It can reuse an existing built-in window or create one. It does not go through the user's registered alternative browser. On 15 January 2004, the Justice Department identified this exact shopping task as violating Section III.H of the final judgment because it opened IE even when the user had selected Netscape, Opera or Mozilla. Microsoft agreed to remove the override, without necessarily accepting the Department's interpretation. This SP1 tree predates that remedy. The distinction between opening a URL and telling the built-in browser to navigate it ended up in a federal compliance advisory.
Sources indicate that the script ran on the same objects web developers were using at the time, and some of it is recognisable. XMLHttpRequest is in the published interface definitions as a 14-member COM interface, much of it recognisable in today's API. Two members the web never took up were responseBody and responseStream. In inetcore/webcontrols there's a 374-line behaviour from 2000 that turns an element into a web-service client, calling SOAP services asynchronously through XMLHTTP. It isn't part of the XP build, and it looks like an early version of the WebService behaviour Microsoft later offered as a download.
In a recent development, that's the pattern that got named AJAX five years later. It does set onreadystatechange after calling send(), though, the reverse of the usual order. The rest of IE6 is here too, and it explains a few things web developers remember. Its browser shell replaced a server's error page with a "friendly" page it generated when the body was 512 bytes or shorter (256 for a few codes), which is why people padded their custom 404 pages with junk.
The AlphaImageLoader filter exists, its header claims, for "web pages that would like to display images that contain per pixel alpha", because ordinary PNGs went through a path that offered the decoder no surface with an alpha channel. The filter can stretch or crop an image but has only a TODO for tiling one, which is why you couldn't use it for a repeating background. CSS expression() values were handed to "the Trident recalc engine", which tracks dependencies between properties like a spreadsheet and always runs them as JavaScript. IE's conditional comments have an evaluator whose overview still shows an older syntax that could test the Java VM's version. A feature for client-side includes was never switched on.
On XP Professional you could be on the server end of the request as well. IIS 5.1 used Denali for Active Server Pages. There's a version each for XP and .NET Server in inetsrv/iis/svcs/cmp. The compiler replaces the literal HTML between pieces of script with numbered Response.WriteBlock calls. It recognises VBScript and three names for JavaScript, JScript, JavaScript and LiveScript, the name Netscape used before December 1995. Somebody left a 1996 âMicrosoft ActiveX Serverâ credits page beside it, a list of numbers XOR-encoded using âDenali rocks!â. A marquee brings in the Denali Team, 129 people get thanks including Bill Gates, and Satchel Paige gets the last word about looking back. The build makes no mention of that page. The actual localhost page styles the product âWindows XP Server Internet Servicesâ, presumably from before the rename. It also contains a rather optimistic comment about its JavaScript running before the ASP that generated it.
In a recent development, of the ASP applications I like Internet Printing best. You could read a shared printer's queue at the server's printers site. When the manufacturer supplied no status page, Windows asked the printer for its front-panel display over SNMP, using VBScript at the server. Each character went into a table cell against a grey background. The person trying to follow this in the code has the added pleasure of strBgnCol opening a row and strBgnRow opening a cell.
Sources indicate that certificate Services in the server editions made allowances for IE, Netscape with KEYGEN, and âLynx or other minimal browserâ. The challenge in the Netscape form reads âprovePequalsNPâ. On XP Professional the IIS query extension for the Indexing Service, idq.dll, used .htx templates to format search results. Code Red spread through that component in July 2001, a month before XP was finished. Microsoft's bulletin MS01-033 dates the XP fix to Release Candidate 1. This tree already has the fix.
The Indexing Service has a longer history than its web interface. It carries a piece of Cairo, Microsoft's early-1990s attempt to make documents searchable by their contents and properties as part of a much more ambitious operating-system design. The search engine was meant to live inside OFS, Cairo's proposed filesystem. There's a trace of the move out of it in svccatpx.hxx, the client-side proxy for the service catalog.
Bartosz Milewski, who led the content-index work, wrote in December 2000 that his team had maintained two versions, the official one tied to OFS in the kernel, and another that ran in user mode against ordinary filesystems. He credits that second branch with letting the index survive OFS's cancellation. They had also used it to index NT's source code, making it valuable to developers who needed to find definitions and uses of functions. The component found a home in IIS, then Windows 2000. Microsoft's June 1996 announcement still explicitly sold the search technology, code-named Tripoli, as an element of Cairo.
The header here is part of the live implementation. Asking the Indexing Service administration code to merge an index leads through ForceMasterMerge to the CSvcCatProxy class in that header, and the library is linked into Query.dll. The history indicates KyleP created the file on 28 February 1994 and dlee moved it from OFS to cisvc on 16 September 1996. A component designed to make a upcoming kind of filesystem useful survived by becoming independent of that filesystem.
XP's web services had a server side too, and some of it is here. When XP didn't know what program opened a file, it offered to "Use the Web service to find the appropriate program". The site that answered is in shell/tools/fileassoc (its notes begin "This project manages http://shell.windows.com/"), written in server-side JScript with an XML file per extension. It recommended RealPlayer, Winamp and CorelDRAW as readily as Microsoft's programs. The notes give the figures from the logs. PDF is far ahead with 231 requests (15.5660%), followed by the RealAudio playlist extension .ram with 137 (9.2318%), .rar with 89 (5.9973%), RealMedia .rm files with 78 (5.2561%), and .diz, the plain-text description inside a ZIP archive, with 37 (2.4933%).
A version that would have looked the extension up in the background was switched off, an engineer explains, because they didn't want "to automatically submit the file extension of the user's file to the server without first asking for permission for personal privacy reasons". The Web Publishing and Online Print Ordering wizards work the other way round. The middle of the wizard is the provider's web page inside a native frame, the wizard's Next and Back buttons just call functions on that page, and the list of providers (MSN, Xdrive, Fujifilm, Kodak) was itself downloaded from shell.windows.com. Counting the Microsoft addresses hard-coded as strings into XP's code, I get about 280 across 24 hosts, and 161 of them go to redirectors (redir.dll and go.microsoft.com/fwlink) rather than to pages, presumably so Microsoft could move a page without patching Windows. Only one of the addresses I counted uses HTTPS, the activation address for Terminal Services licensing.
In a recent development, what I had in mind by calling it XP so far is really two somewhat different things. People who used Windows 2000 already knew the NT kernel and had good reason to worry about their games. For people coming from 95 or 98, XP was supposed to give them that kernel and still run all the stuff they had accumulated in the nineties. How? Well, look up windows/appcompat/db/dbu.xml. Seven megabytes of UTF-16, 1,988 programs from over 600 vendors, and instructions for Windows about what to do for each. There are 374 shims that get in between a program and a Windows function. There are twelve ready-made combinations of them (one is what you select by asking to run something in Windows 95 compatibility mode). Then there are 33 patches that actually change instructions in the running program. The busiest shim is hardly any code at all in principle. When asked which Windows it is, Win95VersionLie indicates 95. It's against 471 executables.
It has been revealed that the part I found most interesting in this otherwise fairly tedious XML is that the testers got to leave notes. Most entries have them, dated, from the people finding the bugs and the engineers having to do something about them. There are 3,622, some in pretty exasperated English. If you're only on the Windows side of this you might say, well, a program should never have depended on that, it was a complete accident that it worked on 95. From the user's side this is a program that worked before they upgraded, and passing that observation on to the user doesn't do much to get it running. XP had to reproduce a fair number of those accidents.
It has been revealed that =EmulateHeap= is a funny name for it. HEAP.C claims âOrigin: Chicagoâ, and the thing in the XP compatibility library is the Windows 95 heap manager itself. That explains those 23 HEAPCHANGE entries under one engineer's name on 9 December 2000. Grim Fandango, M1 Tank Platoon II, BattleZone and others had been getting individual fixes for using freed memory, running past allocations or expecting a resized block to stay put. Give them back the allocator whose habits they'd depended on and the same fix does for the lot. Quicken 2001 went straight on that list (âAn already released heap address was being accessedâ). Joel Spolsky heard from a SimCity developer about Windows changing the allocator for SimCity to let the game use freed memory. Just look how many such favours one engineer could do in a day by XP.
What was wrong with RollerCoaster Tycoon? Two bytes, to begin with. It had 16-bit stack operations that could leave a buffer two bytes out of alignment for the memory functions that took it. XP widened the operations in the running game to 32 bits. On exit it had to spare the game a call to a DirectDraw interface it had already released.
According to recent reports, XP kept three copies of that patch for three builds of rct.exe, telling them apart by file size and checksum. A neighbouring file called Tracks\Batflyer.TD4 helped identify the game. Final Fantasy VII's movies played upside down. Its fix disabled the UYVY and YUY2 video formats in the TrueMotion codec. Golden Nugget had 43 bytes of instructions made inert. Its entry ends with "What were they thinking?".
In a recent development, the notes on the two Red Storm games (Force 21 and Dominant Species) take some reading. You could map a file on 9x and assume you'd get back an address above two gigabytes. Now run the same game on NT. It's the same file, and you're doing the same arithmetic on an address, only Windows is perfectly entitled to put it below two gigabytes. That's enough to change the sign in the calculation those games did and let them past a limit they used to observe.
Why pick out Dominant Species for a fix at all? The note on its shim gives the reason. XP could correct just the comparison in that game. They'd considered arranging for mapped files in general to get high addresses, and found that âgame performance suffers too muchâ.
Sources indicate that NT also had a more general idea of compatibility. The same kernel could present itself to a program as one of several quite different operating systems, and one of those personalities was a little Unix environment implementing POSIX. If you're familiar with Unix, have a look at ttyname. You give it a file descriptor and it should tell you the name of the terminal the descriptor refers to.
Sources indicate that give ttyname any descriptor you like and you get NULL. There's a contemporary account of why that mattered. Stephen Walli, then at Softway Systems working on a fuller Unix environment, picked this very function for his 1997 USENIX paper. The standard permitted NULL if the system couldn't determine the terminal's name. This implementation was in the position of never being able to determine it. For a federal purchase that specified these interfaces, FIPS 151-2 required POSIX conformance. Walli could see how the purchasing requirement had been met. Someone trying to find out which terminal they had open still had a problem.
According to recent reports, turn from ttyname to forksup.c in the memory manager and you get some idea of the work Microsoft did put into Unix. Calling fork gives the child what looks like a copy of its parent's address space. For a page that both processes only read, one physical copy will do. The memory manager has to give them separate copies when one writes to the page.
Recent findings suggest that softway's Unix was Interix. Microsoft acquired it when it bought Softway's assets in September 1999. Even the announcement encouraged customers eventually to move their programs to Win32. By the time XP went on sale the original POSIX subsystem was gone from the product. Its source is here, though, and the memory manager still includes forksup.c in the build. You can follow the federal requirement into the first implementation, the acquisition of a more useful one, and the survival of some of the work after the first one went away.
Dan Lovinger put a small cache into NTFS in August 1995 for programs that expected the file system to âhold ontoâ information about a file even after its directory entry had gone. Take an editor saving yesterday's document. It writes a temporary file and replaces the old one with it. The newly introduced file can pick up the old creation date and DOS short name if it appears soon enough, under the same name in the same directory. This also works after a rename. NTFS calls it tunneling. Looking in that cache for yesterday's document would be a disappointment. All it kept was the metadata.
According to recent reports, there are 256 entries on a workstation volume with the defaults. The original proposal gave it ten seconds. Further on someone records what 95 did, and the fifteen comes from there. On a create, NTFS looks for that remembered name before it sets the file's creation time. A fresh date means it didn't find tunneled data. You can lose an entry before the fifteen seconds are out, you can set other limits in the registry, and a case-sensitive POSIX open doesn't look in that cache at all.
According to recent reports, the compatibility database I mentioned earlier is searchable in the blog post. The testers' descriptions are quoted directly, with their names left out.
The compatibility database fixes most badly behaved programs from outside, with shims. These are fixed from inside Windows, usually by name. Even Kernel32, a library that ordinary Win32 programs load, has code for one children's game, Elmo's Preschool Deluxe. Its 16-bit helper wants to know how much memory there is, physical and virtual. Windows gives the helper an answer the game can live with.
According to recent reports, office 95 also had trouble with the heap. Consider just the case of starting Word 95 from a shortcut on the desktop. Depending on how that went, the heap could be asked to free a stray pointer. In amongst the code practically every program needed for its memory there is a check for this one Office mistake. Then there's a comment a few lines farther down for people who leave perfectly readable ASCII or Unicode text in the place reserved for the heap header. Somebody would like the record to show that these people are âdorksâ.
Industry observers note that quattro Pro for Windows programmed the VGA card directly whenever it found one, which made it crawl on NT, where every such access is trapped and emulated, so NT's 16-bit layer tells every Windows 3.x program that asks that there's no monitor at all: "So we lie to them here bl = 0 No monitor. That way they don't do direct VGA programming and run fast." You can also find a Windows 9x list view clearing a kilobyte of stack for an accounting program. Sage had been lucky with a value it never bothered to set. It used to come out zero and you could maximize the window. So the list view gives Sage its zeros back.
Paste a link in old CorelDraw and 16-bit OLE would spoil some memory. CorelDraw actually needed that to happen. This left the people doing 32-bit OLE with a peculiar little identification problem. How do you tell it's CorelDraw and you can go ahead and spoil the memory? CorelDraw sends a file moniker and gives its class ID as the path.
It has been revealed that the Outlook Today page in Outlook 98 has an accommodation in IE, down to the column on the page. If the script error is at column 35 of line 36, IE doesn't put up the error dialog. The other place that gets the same treatment is column 28 of line 51.
If a program crashed in a common dialog, it wasn't even necessarily that program that needed fixing. Hijaak, for example, was an image program that interfered with Explorer. The casualties could be other people's applications opening their common dialogs. Explorer had to supply a decoy that Hijaak would leave alone.
Word 2.0 left a rectangle out of a call. At run time the 16-bit multimedia OLE handler retrieved the missing rectangle from three stack frames up. The Cirrus Logic display driver that came with XP also knows things about the program calling it that seem a little outside its line of work. One such thing is the dimensions of the pause box in WinBench 97. From that little window the driver could tell when the benchmark was between tests. Now the interesting bit is when to allocate memory. Do it early and PowerPoint gets a better score, but Access gets a worse one. The driver recognises the 300-by-150 pause bitmap, counts ten during Access and reserves space for eight full-screen bitmaps while the timing is paused.
Sources indicate that one of the GDI printer classes is dated 1991. Somebody called a variable in it ptlPrinterHackDiesAfterTheBeta. Here it is in the XP tree, ten years down the road.
Minesweeper ("by Robert Donner and Curt Johnson", and in its file header "WinMine (a.k.a. Mines, BombSquad, MineSweeperâ¦)") has the best find in this article, but the well-known stuff first.
Industry observers note that the xyzzy cheat is defined in the code, and named after the magic word in Colossal Cave Adventure. Type X, Y, Z, Z, Y, hold Ctrl, and the top-left pixel of your screen turns black when the mouse is over a mine and white when it isn't. The pixel is set from the mouse-move handler in winmine.c.
The definitions at the top of the file sit inside #ifndef DEBUG, as if the cheat were meant to stay out of some builds, but NT's build system calls its debug flag DBG, so every NT build of Minesweeper has the cheat compiled in.
It has been revealed that the first click has a couple of oddities. You can actually click where there's a mine, in which case the game looks across from the top left until it has an empty square to put it in. So in practice that mine tends to go to the corner. The clock goes to 1 when you let go of the button. Somebody even explained the choice to do it on release (âIf we had started it earlier, the interval between tick 1 and 2 is not correctâ). Another small thing about the first board is that you have at most 65,536 possible ones. The random generator only gets seeded at launch, with the low sixteen bits of the number of milliseconds since boot.
The thing I found more interesting was in shell/osshell/ep/winmine/rtns.c. If you click a blank, the game opens the squares around it and it has to do the same for any of those that turn out to be blank. This is just a breadth-first flood fill. StepXY is the part that actually opens a square and puts it in the queue if the number of mines next to it is zero. In StepBox the entire working queue is an array of a hundred places (iStepMax), used as a ring so writing the next one after the last brings you back to position 0.
In a recent development, =StepBox= reads a square from the other end of that queue and visits all eight squares round it. It keeps at it until the read position is the same as the write position.
How often do you think Minesweeper has a hundred zeros waiting to be looked at? In simulated Expert games the number got up to about 18 at most. An almost empty Custom board is quite a different game. The dialog lets you have just 10 mines for a board 30 squares across and 24 down. The queue can get so long that its two positions meet with a whole ring of work left to do. To the game that looks just like an empty ring, or it can start writing over squares still waiting for their turn. You can tell when this has happened just by looking at the board. There's an open zero with a square beside it that the game didn't open.
Sources indicate that the nice thing about this bug is it can't cost you a game. Anybody can see there's no mine next to that zero and uncover the neighbour for themselves, which might explain the lack of complaints. I couldn't find a description of it. The simulation gave about two cases in a million first clicks on random boards of this shape. It depends where the ten mines are, so I put a board in the post where it happens every time. There are 710 safe squares. From the marked one my faithful port opens 612 and leaves 30 zeros with a neighbour still closed. An ordinary correct fill from that very same square gets 706. People who've reverse-engineered the game have found the hundred-entry ring. In fact there's a reimplementation published this month that sets aside one entry per square, with a comment saying the ring âcan never lap itself and drop a pending squareâ.
Industry observers note that the first thing XP indicated you was a black screen with the Windows flag, "Microsoft Windows XP Professional" (or Home Edition), and under it a thin rounded track. The three squares crawling through it were blue on Professional and green on Home Edition in this tree. They didn't measure anything. They looped for as long as it took to reach the logon screen.
Sources indicate that the obvious place to look for that picture is the kernel's base/ntos/init/boot.bmp. It's the right size, 640 by 480 in sixteen colours, run-length compressed to 14 kilobytes. Open it and there's absolutely nothing to see. Whoever made the bitmap set all sixteen colours to black. Twelve of the nineteen bitmaps in the kernel's resource script are like that. The colours you remember are in MainPalette in base/ntos/init/anim.c, which the header dates to August 2000 and attributes to Peter Alschitz.
Sources indicate that read its sixteen entries in bitmap order, blue, green, red and a spare byte. That makes 5, 53, 178, 0 a red and 210, 62, 45, 0 a blue. The flag and edition name are already on the screen before the kernel gives the video card any of these colours. So is a 22 by 9 pixel sprite in the top left. Windows reads three little 6 by 9 squares back out of the video memory there and blacks the corner out again. By the time you can see anything, the sprite those squares came from is gone. A thread brings up MainPalette in twenty steps at intervals of 80 milliseconds (the comment claims 100). Once it has done that, the squares can be sent down the track.
According to recent reports, you might expect the fade to end on the colours somebody picked for the logo. It falls one step short, and you can work out just how bright XP got from the order of two operations in the thread.
=FadePalette= multiplies each colour by PaletteNum and divides by FADE_GRADES, which is 20. When PaletteNum reaches 20 the thread has already finished applying colours and switches to moving the squares. So the biggest multiplier the screen actually got was 19/20. The brightest white was 242, or 60 out of 63 by the time it went into the VGA's six-bit colour registers. People watched that logo come up at 95% brightness for about a decade. I doubt anybody noticed. The demo reads the real boot.bmp and puts it through the same fade.
Recent findings suggest that windows Server 2003, still called Windows .NET Server when this code was written, didn't get a separate boot screen. The code in base/ntos/init/init.c draws the XP bitmap. On products other than the workstation it then alters the lettering.
It has been revealed that the squares don't measure the work, but the kernel does remember some of it. XP's cache manager records the memory pages used during boot, then reads them ahead of time on later boots, grouping reads that would otherwise send the disk head back and forth. The boot prefetcher, base/ntos/cache/prefboot.c, by Cenk Ergan in March 2000, has a particularly nice trick. It measures how long the video driver takes to initialise and saves that time in the registry. Next boot, while the video driver is busy, it reads pages that later parts of startup will need. Its budget is the previous delay, rounded down to whole seconds, multiplied by a configurable number of pages per second.
The default is 1,500 pages per second, and it only uses this opportunity for pages needed after Winlogon starts. If there is no valid previous timing, this part of the budget is zero. The window system really calls the prefetcher immediately before and after InitVideo, so this is wired into normal startup. The logo's animation and the disk's activity are doing separate jobs. Behind the looping squares, Windows is using one piece of waiting to hide another. Mark Russinovich and David Solomon's 2001 account of XP's kernel explains the wider prefetch design.
Recent findings suggest that XP's Start menu has your browser and your mail client pinned at the top of the left column, and six programs you "use frequently" under them. I'd always assumed that list counted launches. It's a score, and the score decays when you stop using a program.
The engine is called UserAssist and lives in shell/browseui/emclient. Its design note (shell/docs/uassist.txt, February 1998, from the Internet Explorer 5 days) counts time in sessions, which are roughly days. A new session starts when you open the Turn Off Computer dialog long enough after the last one, or after twelve hours with no keyboard or mouse input. "Long enough" is meant to be twelve hours and comes out at about ten and three quarters, because UserAssist's clock ticks in 53.7-second units that it treats as minutes. As uacount.h puts it, "currently we just assume a UATIME is exactly 1 minute, which it's not⦠easy enough to do, but we'll wait until i have time to do the math." Every time Explorer reads a program's score it first decays it by the number of sessions since it was last used, through a table in uacount.cpp marked "from mso-9 spec". MSO-9 is Office 9, better known as Office 2000, whose personalised menus hid the items you hadn't clicked lately. A few sessions without a program cost it a point, the losses grow from there, and thirty-one sessions after you last used it the score is gone. Its first row gives the thresholds in sessions, 3, 6, 9, 12, 17, 23, 29 and 31.
According to recent reports, the second row gives the points to lose, 1, 1, 1, 2, 3, 4, 5 and 0. The third gives percentages, 0, 0, 0, 25, 25, 50, 75 and 100. For each threshold a program has gone past or reached, its score loses that column's points or its percentage of what's left, whichever is bigger. So a program you haven't opened for twelve sessions has lost a point three times, and then two points or a quarter of what was left, whichever is more.
Industry observers note that launching a program doesn't just add one either. The code decays the old score, adds one, and then bumps the result up to six if it's lower. That's how a single launch comes to be worth six.
The header that defines that six files it under "tunable values for IncCount (talk to your neighborhood PM)", which I love.
There's a fairly practical reason to care about the six. People examining a seized machine used the UserAssist entries in the registry to tell what had run on it. XP-era guides said the raw count started at five instead of zero, so you ought to subtract five. RegRipper, widely used for this work, subtracts five whenever the stored value is greater than five. It works beautifully for a first launch. Suppose you launched a program fifty times, then went 31 UserAssist sessions without using it before opening it again. The same calculation gives you one launch. As for the value names, the âencryptionâ is ROT13, with a comment about someday needing an international-aware scheme. Someday never came.
There's another odd thing about a list of programs you use frequently. You can have one before you've used the computer. When Explorer first builds the Start panel, CreateInitialMFU in shell/explorer/desktop2/proglist.cpp fills the six positions with scores already assigned, 19 for the first one down to 14 for the last.
A PC manufacturer could supply the bottom three entries. Microsoft filled what was left from its list, which in the original release included MSN Explorer, Windows Media Player, Movie Maker, the XP tour and the transfer wizard. SP1's longer list included Windows Messenger. Internet Explorer itself is on the list but gets passed over when it would duplicate the default browser pinned just above it. Given the argument in 2001 over who got to put what on the Windows desktop, I'd guess the lawyers took an interest in that condition. The demo starts with the same scores and lets you see what becomes of them a day at a time.
Industry observers note that freeCell was Jim Horne's. His history line puts the first code in June 1991 and the Win32 port in October. If the title says âFreeCell Game #11982â, 11982 is the number that went into the C runtime's random generator. In ShuffleDeck in shell/osshell/ep/freecell/display.c the cards start out numbered zero to 51. Take rand() modulo the number left, give that card to the next column and fill its place with the last card still in the deck. Do this fifty-two times. Even rand() is here in base/crts/crtw32/misc/rand.c, a multiply and an add. The comment on srand() credits the BASIC random number generator. Anybody using that same generator and deal number could reproduce the game.
Recent findings suggest that my favourite comment in the leak is just above that shuffle. A game developer coming along later might quite reasonably think of improving it. The warning was to expect âthe wrath of people who have invested a huge amount of time solving these gamesâ. The shuffle algorithm was already public, so players could refer to a game by its number.
Between 1994 and 1995 more than a hundred volunteers in Dave Ring's Internet FreeCell Project worked through the original 32,000 deals. The one nobody could win was 11982. Michael Keller keeps the history in his FreeCell FAQ. Now imagine changing either the shuffle or Microsoft's rand(). All those solved games would keep their numbers and acquire different cards. A detail of how one little game happened to work had become an API.
There's a second comment in XP because FreeCell can now take a game number up to a million. The seed will take an integer that large. A value you get back from rand() is still between zero and 32,767, which makes a difference when the Fresh Game command tries to choose a number for you. The dialog rather neglects to mention this.
F2 deals from 1 to 32,767. The test against a MAXGAMENUMBER of one million never enters into it, so to see the remaining 967,233 deals you have to type a number into Select Game. Beneath the ordinary range are two more, -1 and -2. Someone laid those out by hand. According to Keller the joke goes back to Windows 95, and the dialog calls negative numbers special cases for unwinnable shuffles. In -1 the columns are each a single suit and the aces are buried under the odd cards. In -2 each ace is underneath its King, Queen, Jack, Ten, Nine and Eight at the bottom of a column.
Recent findings suggest that solitaire repeats too, only it doesn't show you the numbers. In shell/osshell/games/sol/sol.c it seeds each deal with the Unix time modulo 32,768. That's 32,768 deals recurring every 9 hours, 6 minutes and 8 seconds. Two XP computers with the right time would deal the same cards if you started in the same second. The comment there is about a report that the games never changed, which the people working on it hadn't been able to reproduce.
According to recent reports, back in FreeCell, Ctrl+Shift+F10 opens a âUser-Friendly User Interfaceâ. The note says the strings needn't be translated. âChoose Abort to Win, Retry to Lose, or Ignore to Cancel.â The interesting part about Abort is that you still have to make a move. The next time the normal tidy-up asks Useless() whether a card can go home, it gets yes for everything. Off go the cards in the wrong order but with their usual graceful glide. Without the cheat, aces and twos can go straight home. For a higher card both opposite-colour cards one rank below it must already be there, so nobody on the table will need that card to play on.
A few months ago I wrote about how much trouble the web still has with Arabic typography, and the heart of that article was a missing feature. Arabic can be justified by elongating the strokes inside words, the kashida. Browsers stretch the spaces between words, so you get rivers. I said there that Internet Explorer 5.5 implemented text-justify: kashida in 2000, and that the value was later dropped from the CSS drafts because nobody else implemented it. What I didn't say is how IE decided where to stretch, and that code is in this tree.
Industry observers note that IE does it in two steps. Trident, IE's layout engine, asks Uniscribe (the part of Windows that shapes complex scripts) what kind of justification point each glyph is, and Uniscribe answers with one of the Arabic classes listed in usp10.h. Then inetcore/mshtml/src/site/text/linesrv.cxx ranks those using another table and picks the best available place in each word to stretch, with ties going to the later letter. Uniscribe's letter table isn't in the tree, but Microsoft published the rules for IE 5.5 at the time, and Edo Smitshuijzen of the Khatt Foundation reproduces them.
Industry observers note that if you've ever watched a calligrapher stretch a line, the top of that list looks familiar. The long stroke after an initial seen, and the pull before a final heh or alef, are where they usually stretch. The chosen place gets the first priority in the line layout (LineServices, also in the tree, under windows/richedit/lssrc) and the spaces get the second, so the slack in every justified line goes to kashidas first and only what's left goes to the spaces. In linesrv.cxx that's prior = 1 for the chosen letter (iBestPr) and prior = 2 for the space (iPropL), in a branch that only runs while the kashida share is exactly 100, which is what it is when nobody has set it.
Recent findings suggest that one IE-only value and two IE-only properties steer it. The value is text-justify: kashida, which is also what the default did, so justified Arabic in IE was elongated without anybody asking. The property text-kashida-space sets the share of the slack that goes to elongation instead of spaces. The other, text-kashida, breaks every line a little short on purpose so there's always something to elongate. As far as I can tell, text-kashida-space never worked as intended. CSS percentages are stored multiplied by a hundred, and linesrv.cxx reads the raw number.
So 50% arrives as 5000, which is neither 0 nor under 100 here and isn't exactly 100 in the priority code either. Every value from 2% to 100% lands in the same fallback branch, which gives the stretch and the space the same priority. Setting text-kashida-space: 100% explicitly turned kashida-first justification off.
Industry observers note that the blog demo justifies the paragraph that opened that article both ways, and has a switch that makes text-kashida-space work the way it was presumably meant to. My hand-set mockup there put the elongations where I thought they belonged, and IE's rules put them in the same place in 13 of the 17 words it justifies. In three of the four it disagrees with, IE goes for the stroke after a seen or sad, which the published rules rank above everything except a tatweel that is already there.
GDI had kashida code too, separate from IE's. Samer Arafeh wrote it for the complex-script language pack in March 1998, and it splices real tatweel glyphs into the text for programs that call GetCharacterPlacement with GCP_KASHIDA. XP's Arial and Times Fresh Roman ship with OpenType justification tables listing kashida glyphs as short as an eighth of an em. So in 2001 Windows could elongate Arabic in GDI, in its fonts and in its browser, and the browser did it by default. Then IE lost, the kashida value was taken out of the CSS drafts, and the browsers I wrote about in my earlier article stretched the spaces. Last month a Chromium contributor filed an Intent to Prototype for CSS kashida justification, proposing text-justify: kashida and text-kashida-space as "previously supported in Internet Explorer and EdgeHTML", so IE's design might be coming back twenty-five years later. I hope they read the percentage properly this time.
In a recent development, A couple of other Arabic details I liked. On a machine with a right-to-left keyboard installed, IE's Find dialog had three extra checkboxes, "Match diacritic", "Match kashida" and "Match alef hamza", all off by default. A search for Ù ØÙ د found Ù ÙØÙÙ ÙÙØ¯ and Ù ÙØÙÙ ÙØ¯, and ا matched Ø£, Ø¥ and Ø¢. And when Windows mirrors a window for a right-to-left language, which it does by flipping the whole coordinate system (the SetLayout code by Mohamed Abdel-Hamid, December 1997), the help button's question mark comes out mirrored. That's fine for Arabic, whose Ø is a mirrored question mark, and wrong for Hebrew, which uses the Latin one, so USER draws the question mark again, unmirrored, when the interface language is Hebrew.
For a buyer of boxed Windows, the change in XP came after entering the twenty-five characters on the yellow sticker. That part was old. XP was the first Windows to ask a normal retail customer to activate the installed copy with Microsoft, by telephone or over the Internet, within thirty days. Microsoft had already tried it with Office in several countries. Its announcement for Windows and Office worldwide came in February 2001, and the example it gave a friendly name to was âcasual copyingâ, one disc passing around a household or workplace.
The part I wanted to read first is missing. Setup registers licdll.dll under the rather promising name âWindows Product Activation (WPA) Active X controlâ. You get its name, the names of a few other files, descriptions like âWPA license storeâ and âWPA balloon reminderâ, and no source for the agent itself. On the other hand I could read pretty much every word Microsoft put in front of the customer, including what happened when the customer kept saying no. There's also an older licensing system for servers, considerably more of which survives.
The five boxes live on three different setup pages. Buy the box and Windows sends you to âthe yellow sticker on the back of your Windows CD folderâ. Buy a computer with Windows on it and the answer is on âthe lower section of your Certificate of Authenticityâ. At work you were supposed to find your âLicense Agreement Administratorâ. The boxes themselves turn everything into capitals and switch off the East Asian input method. Keys entered there, supplied in an unattended setup file, or given to the first-run wizard all reach pidgen.dll. The description in the DLL is âPid3.0 generationâ.
According to recent reports, there's even code for what becomes of a stray sixth character. It gets posted to the next box, just as backspace in an empty box takes you back one. Somebody wrote the error message twice. âThe CD Key you entered is not valid.â on a retail CD, and âThe Product Id you entered is not valid.â on the other two.
Thereâs a build of pidgen.dll for each edition. They each carry two public keys as resources, one to recognise a product key issued for retail and one for a key issued through a PC maker. Setup could tell when the key belonged to a different edition.
PRO is Professional and PER is Personal, which is what the build called Home Edition. TRIAL was the pair the betas used. A Professional CD wouldnât take a Home key or a retail installation an OEM one. The instruction to swap the beta pair for the final public keys at release is, I assume, why XP beta keys stopped working on the finished product. They left the server on the trial pair. The reason given was âwe are not shipping SRVâ. It was another year and a half before it shipped as Windows Server 2003.
According to recent reports, what pidgen hands back is two things. One is the Product ID you could read on the General tab of System Properties. The other is a binary record that setup puts in the registry as DigitalProductId.
The number on the screen had five digits for the product, three and seven worked out from the keyâs serial number, and five more. On a copy that came with a PC the group of three was replaced by OEM. You could tell where your Windows came from without leaving System Properties.
According to recent reports, the binary record says more about how the copy was sold. Its header lists seven licence types.
In a recent development, FPP is the full packaged product, the box in the shop. CCP is the cheaper upgrade. The code calls the check âCompliance Checkingâ, since you had to own something to upgrade from. OEM was the computer makerâs copy. Select, MLP and MOLP were organization licensing programmes (MOLP is Open License, if Iâm reading the initials right), and MSDN was the developer subscription. An upgrade CD needed an upgrade key and a full CD a full key when you ran winnt32 from inside the old Windows. The PC makers had upgrade discs that came with full keys, so their media got an exception the comment describes as âbroken by designâ. Thereâs another comment on trying a clean install with an upgrade. âBad user, bad.â.
It has been revealed that about ninety lines up, ValidatePidEx hands pidgen a made-up SKU ending in XYZZY. According to the comment the SKU mattered to system setup and hardly at all to winnt32. That makes another appearance for Colossal Caveâs magic word, after Minesweeper.
Windows 2000âs volume media didnât ask for a key at all. The superseded path is still in XPâs setup, commented out with a note about Select media. XP asked companies for a key too, which is why thereâs a third version of the key page. Microsoftâs deployment guide notes volume copies didnât require activation. At the end of setup, Windows asks the licence agent whether this copy needs activating. On a volume installation it deletes both Activate Windows shortcuts.
Sources indicate that service Pack 1 was the first time I found setup turning particular leaked keys away. Microsoft said in August 2002 that SP1 wouldnât install on copies using either of two widely circulated volume keys, as The Register reported at the time. Thereâs a short list of rejected keys in SP1âs pidgen. The release build also rejects the range issued for the service packâs beta. SP1 acquired a fresh message which Microsoft later quoted in its support article on changing a volume licence key.
âThe Product Key used to install Windows is invalid.â.
Sources indicate that you were to go back to your administrator or the retailer for a valid one. If you suspected you'd been sold a pirated copy, the rest of the message invited you to write to Microsoft's Anti-Piracy Team and promised to keep whatever personal information you sent them in strict confidence.
âReady to activate Windows?â asked the first-boot wizard. It would take care of it over the Internet there and then, and in bold it promised âYou don't need to give your name or other personal information when you activate Windows.â You could put it off for a few days. The version on the Start menu also let you call Microsoft. âJust four steps, and you're doneâ¦â was the page where you read a long installation ID to a person or an automated line, then typed the confirmation ID they read back to you. The little question mark tried to explain why, with the example of a bank asking you to activate a upcoming credit or debit card. I liked the instructions for when the wizard itself failed. âSetup encountered and unexpected error. Please contact the SetupHot alias.â That's msoobe.exe telling a member of the public to write to an internal Microsoft mailing list. The âandâ is in the file too.
According to recent reports, you can go through every page of the wizard looking for those thirty days. The number isn't there. Whoever drew the screen had to ask the licence agent how long you had left, and could commit in the text only to pestering you âevery few daysâ or âperiodicallyâ. On the day the agent reported zero, the choice you'd been making all along had a new label. âNo, log me offâ.
Sources indicate that the limit is written down in TechNet. You got thirty days from installation, or sixty with an MSDN copy. When they ran out you couldn't log on interactively until you activated, though the services kept running on the machine. As for the balloons that spent the month reminding you, one program was called wpabaln.exe and all I've got of it is its name in the setup list. There's a second, oobebaln.exe, with its main file missing. Its messages are still there, down to the little âClick here to activate nowâ¦â and the name of the scheduled task, âActivation reminderâ.
Recent findings suggest that âActivation is completely anonymousâ, according to the privacy statement linked from both wizards. It also explained that Windows made an identification from the hardware in your PC. No name in it, no inventory of software or data, not even the make and model of the computer, Microsoft mentioned. So how much of your machine could you replace before Windows thought it was activating a different one? Minor upgrades were fine, a complete overhaul might mean another activation. In July 2001 a Microsoft product manager told The Register you could change four pieces of hardware. The advice on the CD was to finish your planned upgrades before activating. That same month Fully Licensed, a German company that worked on copy protection, went through a release candidate and reported that what it sent was âcompletely innocuousâ. They found you could get away with rather more changes than people had feared.
Industry observers note that PC makers could ship Windows already activated on their machines, which Microsoft described as âlocked to a machine's firmware (BIOS)â. In the tree there are four oembios files marked âWPA tie fileâ, a component description identifying them as System-Locked Preinstallation files and setup copying them into place. The SP1 Windows Update client also asked the licence DLL for an encrypted copy of the product ID. It put that in the description of the machine it sent to the update servers.
The programmerâs comment is quite specific about what happened to a missing ID. The client could finish gathering the system information and send the request. On the platforms the check applied to, the server treated the missing ID as invalid and returned an empty catalogue. This is in 2002. Microsoft piloted Windows Genuine Advantage in September 2004 and made its validation a requirement for Windows Update in July 2005. Security updates remained available without validation through Automatic Updates and the Download Center.
The server side is older and much bigger. NTâs License Logging service generally counted the connections other services accepted. The file server, dial-up, IIS, message queuing, Internet Printing, the Unix print service, telnet and Terminal Services each called NtLicenseRequest with the product name and the user, then gave the licence back when the user left. Telnet supplied the file serverâs name. As far as the count went a telnet login looked like a mapped drive.
What happened next depended on a choice the administrator made when installing the server. Per Server meant buying a number of simultaneous connections to one machine, at least five. The warnings began at about 90 to 95 percent of what youâd bought. For a while you could go over the limit with a warning that new requests âmay not be grantedâ, and beyond that margin it turned them away. Per Seat meant buying a Client Access License for each computer to use the organisationâs servers. In this mode the service recorded who connected and directed the administrator to the Licensing tool to see how many licences to buy. The licence allowed one change from Per Server to Per Seat. The applet asks âDo you want to cancel this request?â and makes Yes the default.
The counts travelled up the network from each member server to a domain controller in the same site, and from there to a âsite license masterâ. Whoever wrote the replication thread in ds/netapi/svcdlls/lls/server/repl.c describes its wait for work as waiting âto be given the opportunity to serve the greater goodâ.
A few lines further down, before it sends anything, âSo they noted, go replicate my son⦠Yeah, but first we must ask the master for permission.â The same code was compiled into Not For Resale editions with the count fixed at three or five connections for BackOffice kits, ten for a special NT Server. The applet holds the NFR edition of Small Business Server to two customers. The 1996 readme has this just after the list. âMarketing forces being what they are, I'm sure more versions will appear.â.
In a recent development, terminal Services counted its owners in License Logging as TermService, but its licences came from a separate server. The messages call it the Hydra License Server, from Terminal Serverâs old code name. Until it had been activated with Microsoft over the Internet, by web page or by telephone it could only issue temporary licences. Each licensing mode got a small policy class. There was Per Seat, Per Session (formerly Concurrent), Remote Desktop for Administration with its two connections, and XPâs single-user Remote Desktop. XPâs whole policy takes 63 lines and introduces itself as âA dummy licensing policy for Personal TS.â A small table in the module answers a different question, whether the client already has a licence included. The rows are other, Windows 2000, XP and later clients. In the Windows 2000 server column the other-client row is denied and the next three are allowed, which is where the entitlement for Windows 2000 and XP Professional clients comes from. The next two columns, XP-generation and later servers, deny a built-in licence to all four.
To find its licence server, the terminal server tried the administratorâs list, then servers published in Active Directory, then the local domain or workgroup. The comment in efind.cpp is âTODO: add error codes/handling to all of thisâ. In Active Directory the code tries its site first. If that fails, it asks the other sites using a separate search filter.
In a recent development, setup creates the object as TS-Enterprise-License-Server. The search of the other sites runs License and Server together, and I couldnât find that spelling anywhere else in the tree. As far as I can tell, that search would miss the object. I havenât been able to test it.
Sources indicate that many of the drivers that came with XP show 7/1/2001 and version 5.1.2535.0 in Device Manager, although XP was build 2600 and was finished in August. Both of those numbers are written down in tools/razzle.cmd.
Unless a component asks for a different date or version, those are the values the build stamps into its INF file.
When the Pentium division bug turned up in 1994, NT gained a boot test that divided 4195835 by 3145727, multiplied the result by 3145727 again and checked that 4195835 came back.
On a flawed chip NT could switch off the floating-point unit and handle those instructions in software in ntdll. The emulatorâs files say âby Tim Patersonâ. The Tim Paterson who wrote 86-DOS was back at Microsoft then, so I think itâs very likely him. In XP nothing sets the variable that runs the test. The code was still in the tree.
Recent findings suggest that how does Explorer go from the list of files you're copying to a number of minutes left? In shell/shell32/copy.c a file counts for one point, a folder for one, and 32 KiB of data for another. Move within a drive and no points go on copying the data. Move to another drive and each file and folder counts twice since the old one has to be deleted after the new one is made. Every two seconds the dialog counts how many points it got through. To estimate the rate for the rest it gives that new speed one vote and the previous speed two, then divides the points left by the resulting average. It takes a while for news of a slow disk to get through to the dialog.
The final adjustment is for the person sitting there watching. Seconds go up to the nearest five âso it doesn't look so randomâ. Over sixty seconds it's rounded up to minutes, over four hours the dialog stops offering a figure. A comment says it updates every ten seconds. The actual timer says 2,000 milliseconds. Raymond Chen wrote in 2004 that you can know the amount of work left perfectly well and still have to guess what the disk or the network will do next.
Recent findings suggest that we have something better than an impression that the comments were tidied up. Kuro5hin quoted the Windows 2000 originals in 2004 in âWe Are Morons: a quick look at the Win2k sourceâ, counting âa dozen or soâ f-words and s-words. Take XP SP1's C, C++, assembly and header files and search for the f-word. Zero. Take some of the surrounding words from the Kuro5hin piece and they're still here. There's a particularly obliging pair in shell32's util.cpp.
In a recent development, in Windows 2000 the offending party is âthe fucking alpha cpp compilerâ which âseems to fuck up the goddam type "LPITEMIDLIST"â. After another few words for the compiler (âfucking peice of shitâ) the writer explains passing the final parameter as a void pointer.
the fucking alpha cpp compiler seems to fuck up the goddam type "LPITEMIDLIST", so to work around the fucking peice of shit compiler we pass the last param as an void *instead of a LPITEMIDLIST.
In the SP1 tree the instruction to the next programmer is the same. The description of the compiler has acquired a certain restraint.
âalpha cpp compiler confused by the type "LPITEMIDLIST", so to work around this we pass the last param as an void *instead of a LPITEMIDLISTâ.
Industry observers note that they left the space in âvoid *insteadâ just where it was. In another file âDOING SO FUCKS THE BUILD PROCESSâ turns into âDOING SO MESSES UP THE BUILD PROCESSâ. Rather nicely, whoever altered that line removed four exclamation marks from the end of it so the box it was drawn in still lined up.
Was it PoliCheck? Microsoft had such a tool, and Michael Kaplan wrote about it in 2010, but that doesn't tell us what ran on these files. Common controls still get âstinking piece of shitâ, Notepad gets âsuch a #@@!@#@ an appâ, and Calculator gets as far as explaining âwhat the [censored] I did hereâ. Leave the speech dictionaries aside and there are two traces of the f-word elsewhere. One's a label in a prebuilt DLL from the 16-bit compiler tools, cut off after 31 characters at JMPLOADZEROBECAUSETHISFUCKINGLA. In its source the same label now reads JMPLoadZeroBecauseThisLanguageHasNoFarConditionalJump. The other is on line 1252 of junkmail.lko, in the 1998 spam filter. For everything that went into getting that word out of the tree, the email model only gave it a weight of 0.028.
It has been revealed that as for âwe are such moronsâ, the developers were talking amongst themselves. What went to the public SDK depended on hsplit, rewritten in 1996, which split a .w file into public and private headers. The complaint about a wizard redesign between IE4 and IE5 is in the private part of shell/published/inc/prsht.w. There were two unrelated wizard styles with similar names to accommodate. What people outside Microsoft saw of the discussion was one flag, PSH_WIZARD97.
An exemption from checking a FAT volume gets explained as âa reasonable hack-o-rama to make BillG happyâ. Gates had installed Beta 3 and got chkdsk on his machine. Setup wrote to the disk late in the installation. By the time of the check, other activity on the volume had left it temporarily looking dirty. The last sentence identifies the bigger trouble. FAT didn't have a journal.
It has been revealed that now read the FAT driver Microsoft published as an open sample on GitHub. âThis logic is a reasonable change. Why?â Everything from the explanation to the sentence about the journal is still there. Only the account of BillG's machine has slipped out of the story.
You could still swear in print if you spelt things inventively. The file cache, on its way to waking the thread that writes to disk, calls a routine which under a particular condition will do nothing. The programmer had to go and read somebody else's source to find out that much. âI had to peak in the sourcesâ, the comment begins, and âSheeeeit!â is how it ends.
OLE had a master file defining extension interfaces for headers outside developers were going to use. The house rule at the top of it was âKeep random shit OUT of this subdirectory, or die.â.
âWe seem to have shipped this thing with a giant leak.â Disk Cleanup had already allocated a buffer by the time a cleaner could throw the pointer away. They went on allocating it because shipping customers might well have a cleaner expecting to get that buffer. The comment calls it âthe dumbass partâ and the variable put aside to save the buffer is wszDumbassLeakProtection.
The F1 help fix for the networking tools' IP address controls is described in exactly the same terms in three files, down to the two âf**kingâs at the beginning and the â*SIGH*â at the end. rundll32 calls SetErrorMode to âturn off critical error bullshitâ. The failure code for a crash dump, over in Windows Error Reporting, goes into dwAwShit. Somebody copying a warning into nine DirectShow files had exercised their editorial discretion. A â personâ had turned the damned level 4 warnings back on in the header.
Recent findings suggest that program Manager still built as progman.exe. Whoever wrote this bit of its DDE code would have liked to ask a simple question about window state and couldn't. Their professional opinion of the Windows API is that âit really is the worst windowing system I have ever used.â I rather like the consolation they find for a lack of consistency in the design. âLuckily orthogonality doesn't affect stock prices :-)â.
Industry observers note that the person making FTP folders work in XP thought wininet could have done something about a bug where files looked like directories. The wininet team couldn't reproduce it. âIt's no repro because I did this work around!â, says the person who had made the folders work.
In IIS somebody stopped in the middle of calculating the length of a redirect page to consider what a custom error file might contain. The writer doubted the calculation could handle a useful custom error page. The comment opens âThis code is so @#$#%@%$.â By the end they're angry enough to suggest a beating for whoever wrote it.
The longest complaint belongs to the IIS FTP server. A fix for idle timeouts had broken shutdown. With three days to go until K2 Beta 1 (IIS 4 in 1997), the author put in a temporary workaround and left âREMOVE THIS POST BETA 1 AND FIX USER_DATA PROPERLY!!!!â. The first line is âGeezsh, I hate my life.â The workaround was still there in 2002. One thing that did get attention, according to a March 1998 note, was a debug message about masking the FTP bug. Someone had sent the checked DLL to Ernst & Young and the message had caused âsome embarrasmentâ.
Microsoft's 16-bit network library read results from the DOS network emulation even when it didn't yet know that the call had worked. âIT DOESN'T LOOK AT THE RETURN CODE FIRST.â The next line attempts to do on paper one of Sam Kinison's screams.
In the DHCP, WINS and IPX consoles, the function for opening property sheets is called DoPropertiesOurselvesSinceMMCSucks. Health Monitor also has some advice for the next person who expects MMC to initialise it just once. âBut you know those MMC clownsâ¦â I like the solution in the dial-up Connect dialog, which can't identify its drop-down list because Windows didn't give the list a parent. It makes the thing 19,591 pixels wide, then goes looking for a window that wide on the desktop. With Office XP installed, Explorer puts Windows icons on images and on the Word, Excel, Access, PowerPoint and FrontPage web pages. The Office icons were deemed ugly, whereas âours are so beautifulâ¦office wont mindâ. The loop to do it is headed âreplace this ugly chickenâ.
The Microsoft SideWinder people told DirectInput that five or six polls would do. The Windows 9x code polls sixteen times âto shake the stick into submissionâ, with âThey're wrongâ for the hardware team's estimate. Then there's a delay looked up in the registry. It depends on the CPU, another thing SideWinder forgot to tell DirectInput, if you go by the comment. âWhat a bunch of lamersâ in the earlier version has turned to âWhat a shameâ in DirectX 8.
It has been revealed that some comments are addressed to Microsoft at large. In August 1991 a resource compiler programmer found a way to handle Unicode files for the tool that built Windows' dialog boxes. âI'll be the first person to admit that this is an ugly solution, but hey, we're Microsoft :-)â. The state flags in the window manager's central header double as painting hints and carry an âAWESOME HACK ALERT!!!â. For a measure of its magnitude the comment suggests consulting the national debt.
A port in the DirectPlay multiplayer code will be familiar from old firewall guides. In the source the constant is 2234. The code forgot to convert it to network byte order, which made its real port 47624. âWe are living with the mistake.â.
Windows Write, the 16-bit word processor from Windows 1.0, still has a directory in the XP tree. Somebody following the build instructions couldn't quite get the WRITE.EXE they'd had in Windows 2.x and went round asking the people who'd been there. Their first finding was âNobody wants this product or claims responsibility for it.â Everyone who'd worked on it, with it or even around it seems to have found it a nightmare.
They also had a file called EDM.EDM, on which the readme observes âhey, file naming is our specialty here at MSâ.
Recent findings suggest that the Tweak UI PowerToy gave users access to settings Windows didn't have controls for. It encoded the names of the registry paths it used so they wouldn't turn up in a casual search for text. The source calls them âpolitically damaging stringsâ. There's a feedback link in window title bars with the old internal name Lame button, still visible in HTLAMEBUTTON, PLAMEBTNPROC and the label marked âformerly 'Lameâ¦'â. The DLC driver for IBM's network protocol calls itself âa piece of garbageâ. The packet pools in its memory header were attached to other things âlamprey-likeâ, and the writer proposed moving them to a ZombieList. The new fields were never enabled. The state machine gives its review, âThe orginal IBM state machine sucks!!!â.
It has been revealed that I also found two comments addressed fairly directly to people who worked there. The listbox code remarks on the UI people being âsillier than your 'typical dumb user'â over a little-known Shift+F8 mode. A debugger extension for the window manager expects a tag by number. Give it the name instead and the error addresses a colleague by his first name and asks âHow long have you been here?â.
Eventually you get to people outside Microsoft. The multiprocessor HAL, down between the kernel and the motherboard, needs an account of the buses on the machine. Normally it can ask the BIOS. Then comes the exception, identified by the manufacturer's name. âCompaq machines have their own special ways to be busted.â For a Compaq the HAL goes straight to probing the hardware.
An upgrade has to remove three Intel networking components. Somebody put that job in HrRemoveEvilIntelWinsockSPs, and at least gave the next fellow the bug number and an explanation: âa complete hack to cure RAID 332622, but it's all we can do this late in the ship cycleâ. Sound Recorder's complaint is about Creative Labs. The card gives the buffer back marked done, then when Windows tries to release it the card states it's still playing. The author had thought Media Vision had the field to itself in this sort of âCreativityâ.
The person decoding Intel cache descriptors had an undocumented formula to maintain. If Intel ever changed it, âthe nice people at Intel better pray I'm dead before they break it or I'll hunt them downâ. The parallel-port people seem to have had a quieter meeting with their vendor. The y in an LPTx.y name had given away where a device sat in a 1284.3 daisy chain, so the driver had to keep that odd spelling. The vendor had âapologized profuselyâ and promised to try to avoid undocumented interfaces, or at least to tell Microsoft when it used one.
WordPerfect used to open Control Panel hidden so it could talk to it. In the source it goes by NerdPerfect. The people dealing with this say âwe are blowing off fixing the communication stuffâ, which is how the Control Panel launcher came to disregard requests to open hidden. Lotus got a review in the themes engine's list of programs to leave alone when drawing title bars. The list is switched off in this build, but you can still read about WordPro, âa particularly poorly implemented appâ, and a WordPerfect compatibility menu someone thought was âthe elephant man of modern softwareâ.
According to recent reports, or take a piece of padding in the structure Windows 9x kept for a thread. That old kernel code is here for 16-bit programs and the padding has to stay. Somebody at SAS got the internal layout and the statistics package reads something at a particular offset. âWhoever gave this internal structure to SAS is a bonehead. Break SAS and see what happenâ. There's a little more invention in the 1992 NT User Manager. It needed accounts while an API was missing, so its fake users include Winnie The Pooh, âSoviet Union - NOTâ, and one called âUnix Yuckâ. The last one's description is âUnix - why ask why?â.
My favourite comment in the hardware abstraction layer is in the code for coming back from standby. It explains why the processor cache should be invalidated in case a stray gamma ray flipped a bit while the machine slept. âHonestly. Intel asked for this. I'm serious.â After all that insistence, the instruction itself has been commented out.
The HAL has opinions about clocks. A power-management timer has given a reading earlier than the previous one, so âmaybe it's time to upgrade that 200MHz CPU if you want fast boot!â A second complaint is spelled âWe already had one decreasing read, looser!â Look up HalpPCIType2TruelyBogus if you want the longer treatment. On a multiprocessor machine with the old way of reading PCI configuration space, its fix involves stopping every processor. The description starts âThis is a piece of workâ, uses âbadâ about ten times and still has more to say under âWhile I'm flaming.â In the register map for the multimedia timer that became HPET, four of the padding fields are called Unknown, Mystery, Secret and Abyss.
If you ever got a stop sign on an office PC for trying to do something the administrator had forbidden, the function behind the box has a message for you. It's the popular misquotation of HAL 9000: âI'm sorry, Dave, I can't let you do that.â.
Sources indicate that why does XP's Registry Editor put âWindows Registry Editor Version 5.00â at the head of a file it exports? Why not REGEDIT5? âSit back, and I will tell ye a tale of woe.â The Windows 95 reader got as far as the character after REGEDIT. A 4 indicated the Windows 95 format. Anything else, which would have included a 5, went to the Windows 3.1 reader. The newer source actually quotes the offending line and observes, âOf course there won't be a version 5 of regedit. Version 4 was perfect!â.
Programs that WMI's command-line event consumer launched were allowed only so much time to finish. The method that arranges for one to be terminated is called ScheduleAssassination. It takes the program's process handle as hVictim and the appointed time as lastMeal.
Three sample events turn up in a debug WMI event viewer. The âCoffee machineâ reported âDevice offâ. âHuman Chickenâ reported âLow Caffieneâ because it âCan't operate coffee machine before drinking coffeeâ. Severity one was reserved for 12:30 on 14 January 1998 and the server was âRealityâ. Event: âEnd of Worldâ. Explanation: âThe significant guy is mad about everythingâ.
Terminal Services left a word in the user parameters of every account that had ever had its settings. CfgPresent was the marker for the presence of Citrix configuration data. In hex the word was 0xB00B1E55.
Recent findings suggest that oh_Freddled_Gruntbuggly does nothing. An IIS library on Alpha needed one function in it, so somebody obliged with the opening of the Vogon poem from The Hitchhiker's Guide to the Galaxy, in hitchhiker.cpp. An Active Directory cache page can be bfdfClean, bfdfUntidy, bfdfDirty or bfdfFilthy. âBananaâ is the resource name of Task Manager's process context menu. DirectPlay could send a debugging message to stop a peer in its debugger. The log on one side notes âsending DIE PIGGY. sayonara suckerâ, on the other âTHIS IS ONE DEAD PIGGYâ. I've left out a name and extension. The sender is disabled in this build.
In a recent development, one performance-counter DLL loses the train of thought halfway through a sentence: âFirst we have to a DestroyObject on all the objects that this process has created, this we do by - interrupt - missed what I was thinking !!!!â. The person hard-coding 1999 into a release script that expanded two-digit years reckoned they'd be dead in 2099, âsue me then.â Sound Recorder marks its writer's first goto in ten years, followed thirty-five lines later by the second. The 16-bit video code draws a frame the AVI player has told it to skip to compensate for a player bug. âWorks fine in theory, but in theory, communism works!â In the kernel's user-mode security editor the unfinished privileges tab tells the user, âI'm sorry, but due to the lack of time and interest, individual privilege selection is not yet supported.â The ACPI bus driver describes talking to the power and plug-and-play firmware as âblack magicâ. After reading some of it I'd call that fair.
Sources indicate that microsoft, Microsoft, Microsoft, Microsoft, Microsoft, Microsoft, Microsoft. Those are the seven forbidden words in the OEM Preinstallation Kit's check on the support text a PC maker could supply. The first is a literal string and the remaining six are variables that resolve to the same thing. âNow make sure they don't use any naughty wordsâ, claims the loop.
Recent findings suggest that raymond Chen dates the move from SLM to Source Depot to âshortly after Windows 2000 shippedâ, which as far as I can tell makes XP the first Windows developed on it. SLM, the Source Library Manager, was pronounced âslimeâ. The clients cooperated to maintain one central copy and there were no branches. Source Depot was âan authorized fork of Perforceâ. Three genuine slm.ini files went with a printer driver by accident. They still refer to //EIGOS100/SLM and a directory under the old NT/PRIVATE tree. A fourth, under enduser/speech/ce/public, was made expressly to fool an old tool called inallprj. It says quite plainly you are not enlisted in an SLM project.
WinDiff retained the code Geraint Davies wrote in 1993 for getting old files out of SLM. When the Source Depot support went in next to it somebody annotated a common structure âshared, SD and SLMâ. There are directions for the move in net/branch-reasons-and-info.txt. You could look up where an individual networking file went from the oldnt tree into newnt.
Sixteen latest depots for what used to be one tree. The root had one and so did each of the fifteen projects from admin to windows. There's a roster of all the servers in tools/whocheckedin.pl, whose header still calls the script sdout.cmd.
The developer dealt with SDX 1.03, in tools/sdx.pl. Point SDXROOT at an enlistment, select the product, branch and projects wanted (there was an option for all projects), and sdx sync, submit or integrate did its work in every project one after another. In 2001 there were scripts both to catch a project pointing to a different branch from the enlistment root, checkdepots.pl, and to switch an entire enlistment, changelab.pl.
Public was the place to go for another project's headers and libraries. The primary build machine for the branch checked them in. Add or remove a file and you had to put your mail name and reason in tools/publicchanges.txt. It states âKEEP THIS FILE SORTEDâ¦â twice. The file and its archive record 2,250 entries by 242 people, from âMistakeâ and âFix public screwupâ to âuse in conjunction with sputilsa.lib (temporary)â. Six build files require you to consult a named individual. âAny changes made without doing so will be summarily deletedâ.
=tools/buildmachines.txt= lists the labs actually building Windows. Lab01_N through Lab07_N, with no Lab05, and Lab10_N. changelab.pl would accept names as far as lab15_n. There was main, xpclient for the product, xpsp1 for the service pack and a QFE branch for hotfixes. VBL is what the scripts call a lab's build machines, presumably virtual build lab. All told the file contains 158 entries for 146 official machines across fourteen branches. Take the rule about primary machines at the head of the file and then look at the very first branch it lists.
It has been revealed that one primary per branch is permitted. The first branch, QFE, has four, one for each combination of architecture and flavour. Fre means retail or free and chk means debug or checked. Main, xpclient, idx01 and idx02 also have four. 77 entries say distbuild, where several machines shared a build. The 158 entries break down as 82 x86, 72 Itanium, two AMD64 (one machine, two flavours of Cutler's port), and two axp64, lab machines for the old 64-bit Alpha.
It has been revealed that read an RI in the comments to tools/sdx.pm and you can time an actual delivery. RI is reverse integration, lab up into main, whereas ordinary integration went back down to the lab. For build 2268 on 8 September 2000 Lab07 sent a change into each of seven depots. The entries start at five in the afternoon and cover a little over two minutes.
RI could also mean the deadline after which somebody hoped to tidy up. A driver kit copy script has an âextra split for a quick fix so we can RIâ. A proper one âwill be test and checked in for the next RI.â.
In 2017 Windows finally moved from Source Depot to Git. It had grown to 3.5 million files, 300 GB, 4,000 engineers and 440 branches, with 1,760 lab builds in a day.
Industry observers note that how did they get one Windows out every day when developing Windows 2000 had taken about 1,400 developers and 1,700 testers? Mark Lucovsky, one of the original NT engineers, gave a talk in August 2000 and described what they had been doing. You needed written permission to change the source. The build lab approved about a hundred changes a day and typed the sync and build commands in itself. In his words, âa developer that mistypes a build instruction can stop the build lab, which in turn stops over 5,000 peopleâ. The lab branches let each lab run its builds, â100% hands offâ. Ten in the morning and ten at night each got a âfull synch and full buildâ, with failures detected and mailed to the team. Under tools you can read how much of what we now do in CI they had got working.
The first thing you needed was a build window. tools/razzle.cmd, named after NT's old code name Razzle according to Chen, gave you âa pure system pathâ, because â16-bit tools sometimes puke on long pathsâ. The compilers from the tree went first. It picked the processor and, unless you asked otherwise, gave you a checked build with DBG=1 and the assertions intact. About 8,500 C files and headers have conditional DBG blocks. Then the command to build Windows was build. Its 20,335 lines are in sdktools/build and its history starts on 16 May 1989. It walked dirs files to find the directories and sources files to find out what one binary needed. There are 3,650 of the former and 13,139 of the latter. Minesweeper's sources, for example, identifies a program named winmine, lists its C files and asks for the Unicode definitions and the C runtime.
Look at the makefile beside almost any one of those sources files and there's only one line of consequence. All the machinery is in tools/makefile.def, 4,532 lines of nmake shared across the tree. Some 7,125 little makefiles say they're for âall the components of NT OS/2â, as the project was called until 1990. build.exe sent nmake round three times, to generate files such as the MIDL interfaces and message tables, to compile, and to link. binplace then split out the debug symbols and put the binaries where placefil.txt told it to (19,593 entries). If a build had no errors, build.exe deleted the empty build.err. Everything else could watch for the existence of that one file. And an individual developer didn't have to build Windows just to try a change. PopulateFromVBL.pl gave you the lab's latest binaries to use with the project you'd compiled yourself.
There is a per-processor makefile too. All the architectures use /WX to turn a compiler warning into an error. Two undocumented options caught my eye in the x86 makefile. Its comments translate them: /QIf asks for frame pointer omission records for every function, and /QIfdiv- tells the compiler not to generate a test for faulty Pentiums.
The old 1994 Pentium division bug reveals up in the kernel elsewhere in this article. Here every x86 file was compiled with an explicit instruction to leave out the compiler's check for it. You can date the compiler quite closely. tools/x86 contains pre-release binaries, with cl.exe identifying itself as 13.00.9176 from March 2001. Visual Studio .NET, the product it was being built for, appeared in February 2002 with 13.00.9466.
An official binary carries the branch name. Somebody using a shared Terminal Services machine for a buddy build gets the branch and computer name, and an ordinary developer gets the branch and their user name. That's how you can look at the 112 stamped tools in tools/x86 and find that 91 came from somebody's machine or a shared one. One is a header tool for WOW64, which lets 32-bit software run on 64-bit Windows. It was built under Dave Cutler's user name, starting at 20:36 on Upcoming Year's Day 2001.
Sources indicate that now follow a build in the lab. tools/timebuild.pl has most of the work written out in its running order, a condition on the left, the command it governs beside it.
In a recent development, read !NOSYNC as unless you've asked to skip the sync, CHECKWARN as mail somebody if the previous step failed, CHECKFATAL as stop. The first casualties of a clean build were local modifications to the published headers and writable files that Source Depot hadn't supplied, removed by scorch_source. The sixteen depots were all synced to the same minute. That date went in the build. The script ran the clean build and if it failed, mailed the people who might have broken it.
=2415.x86fre.main.001222-1745= was an example in the usage text. If build 2415 was to be a retail x86 build from main at 17:45 on 22 December 2000, timebuild could wait for that minute, sync every depot to it, then use it for the name. That's how you read 5.1.2600.1106 (xpsp1.020828-1920) on an SP1 machine: xpsp1 on 28 August 2002 at 19:20. The number in ntverp.h itself was âonly modified by the official builderâ. You can still read newver.pl, a âfailed attempt at a auto-newver script, keeping for future referenceâ. Larry Osterman traces the round release number to Brian Valentine. NT used to advance one a day, but over on Exchange where Valentine came from they rounded up at a milestone. XP got 2600.
It's one thing to notice that a file no longer compiles. Is its last editor the person to drag out of bed? sendbuildstats.pl took the broken paths, turned them into directories and asked what files in those directories had been synced since the last build. That gave it a set of changes and a set of people.
People on the list got the email directly and the lab got a copy. If the script came up empty, everyone who'd changed anything got the mail. Apparently the lab could acknowledge an error while the build was running. When the current build.err matched the saved build.fixed-err, the pipeline reported âError file hasn't changed. Build errors ignored.â.
Every fifteen minutes tools/checkbuild.cmd compared the files. If they differed it sent âBuild Breakâ to an email-to-pager gateway. syncbuild.cmd had a loop for running timebuild over and over, doing the sync, the build and the mail on each round. Chen remembers a four-processor Alpha doing this hourly for the shell team. Its message was âThe Alpha AXP build is broken. Go fix it.â.
Eight hours for a complete Windows 2000 build on four processors, according to Lucovsky. Build Console 1.0 in sdktools/mtscript could spread the wait around. Its JScript service registered with remote COM. A web page could direct machines the code calls slaves. Main's x86 retail build had four distbuild machines feeding one postbuild host, Lab07's checked Itanium build had ten. A worker cleared the tree, synced on six threads, built and copied its output to the postbuild host. Then it waited for nextpass. In a sample for one depot on one machine, 13 April 2000, generating files took about six minutes, waiting for the others 48 minutes, and compiling 27 seconds. Another three hours and fourteen minutes including waits before linking was reported done. bcbuild.js knows what to tell a developer trying to publish files while the manager is busy. âYour Laptop is destoryedâ.
All that compiling gives you a directory full of binaries and somebody still has to turn it into CDs. postbuild.cmd reads a file called pbuild.dat. BEGIN starts a script that can run alongside the others and END waits for one to finish. To find the dependencies you read the comments. One says the catalog signer is waiting on the rule scripts, and the CD image maker waits on compression, which in turn waits on the catalog signer.
Recent findings suggest that there are 64 scripts in the postbuild. They compress most of the files with LZX (hence all the .dl_ and .sy_ names on the XP CD), compile catalogs of the files' hashes and sign them with a Microsoft test root the testers had to install. The real signature was a separate request. Other scripts index the symbols, put file sizes in the layout that Setup reads for its disk estimates, and assemble seven CD images from the same binaries, Home Edition through Datacenter Server. Hard links let them afford seven copies. A beta got its expiry date here, and a Microsoft Research tool obfuscated the activation files on x86. A failed script might leave its window open with âPossible error, sleeping 30 minutesâ for whoever was in the lab. At the end postbuild decided it had failed if it could find the string âerror:â in one log. Even writing the finish time to disk has a comment. A timestamp ending in 1 or 2 could accidentally turn its last digit into part of a redirection. They made the output descriptor explicit so they'd keep the whole time.
In a recent development, the people doing the international builds started with the US binaries with the same build number and added translated resources. Only the parts that needed compiling for a particular language got rebuilt. The postbuild readme asks you to take any new step, âmultiply its execution time with 21 (7 Redmond-based languages and 14 Dublin-based languages) and assess whether its execution time is still acceptableâ. By XP they were doing 25 languages. On top of that there was a pseudo-localised build to exercise the translation process without doing a translation, and a mirrored one, presumably to try right-to-left layout.
Releasing the build was reserved for official machines. localrel.cmd looked for 10 GB of free space, moved the tree into a release directory named for the build and made latest point at it. release.cmd distributed it to the release servers with remote.exe. âRemote.exe always return 6, ignore the return valueâ. In the main lab there was also a boot-test machine for each product. autoboottest.pl reformatted its test partition and installed the upcoming Windows unattended. A private option in winnt32 put text and GUI setup under the kernel debugger and setup's program under ntsd, so a crash in the middle of installing Windows could be examined there. autoboottest.pl also left a script in the new system's Startup folder. Whether that script ever ran was itself a test.
Industry observers note that you needed a logged-on desktop to get as far as Startup. From there the script allowed 27 minutes for the release to finish copying before asking the servers to raise the build to bvt. The celebrated build qualities are a small file in the logs and a latest link for each quality. You can read their order in the Perl script, beginning with pre, then bvt, tst, sav, idw, ids and finally idc.
Industry observers note that the automatic steps stop at bvt. The only mention of setting tst in tools is in a usage example. A person had to take it farther. The scripts don't expand those abbreviations. Elsewhere BVT is build verification test. IDW, according to Chen, means Internal Developer Workstation, âbuilds stable enough to be self-hosted by the development teamâ. For the rest I'd be guessing. Microsoft's August 2001 PressPass account says a daily build went âto the 'Build Verification and Test' Lab for review and identification of latest bugs caused by the changesâ. That lab had people in it. An SP1 script mails it âBuild is ready for BVTâ, and assignbvt.pl, which could have set tests running by itself, is disabled in every branch's settings. You get another view of the BVT in the source of the products it tested. Passport has an assert commented out with âBVT Break!!!â. IE's window tracing is marked âDISABLED BY DEFAULT (1) for perf reasons (2) to pass BVT on initial checkinâ.
How much of this was still running? For the CRC check on builds going to Microsoft Japan we have the answer in writing. It âwas turned off accidentally for over a month and nobody noticed, so going to comment it out for nowâ. There's also missingfilecheck.cmd. It refers to four scripts that are missing from the tree, and in the tree nothing calls it.
You could fail a test well before your change got near a lab. Under inetsrv/iis/svcs/cmp/checkin the IIS team's ASP smoke tests print the filename followed by FAIL. Their instructions say âYou will need to correct your problem before checking inâ. An IIS that wouldn't shut down afterwards failed too. There are developer regression tests, or DRTs, in the shell, COM, WMI, ADSI and network redirector. For IE's HTML engine Trident you went to the Gauntlet, itself an HTML application at inetcore/mshtml/tools/whistgaunt.hta. Its wizard took your change, queued it on a server and had it built, tested and checked in on your behalf. Options commented out since suggest it once could have merged several people's changes too. Before getting past the mail page you had to give it four quite human pieces of information: who tested it, who reviewed the code, a summary, and the binaries affected.
Recent findings suggest that in other words, a developer was asking a web page for permission to check in. One option in the Gauntlet still remarked âDo a full ssync and clean buildâ. Ssync is what a sync was called back in SLM.
Recent findings suggest that on x86 razzle.cmd also put PREfast in everybody's path and updated it when a later version had been synced. This is the checker Microsoft later shipped with its compilers as /analyze. The other name that comes up is PREfix, the Microsoft Research simulator that looked at a whole program. Its public header supplies macros to tell it when a path is impossible. About 200 lines of comments are concerned with satisfying one checker or the other. ZDNet reported on a Lucovsky memo in February 2000. It noted Windows 2000 was going out with âover 63,000 potential known defectsâ and more than 65,000 potential issues reported by PREfix, and that latest code for Whistler, as XP was then called, wouldn't be checked in until they were fixed.
Near the end you can put the machine's version of events beside the testers' version. Microsoft's PressPass piece says they were down to three bugs by 17 August 2001 and âthe final build was finished at 3 a.m. Saturday morningâ. Four CD burners turned out 1,000 copies for the testers in 12-minute passes. The testers signed off 4,300 items individually on an internal website. One team leader had pledged to eat a real bug for every 250 the developers fixed in a day.
Recent findings suggest that how much of this was the work of any particular person? One courtesy the NT team did the reader before anybody had thought of a leak was to put an Author field in each file, usually along with a date. You can read much of the kernel in the order in which it was made.
Read the dates on Dave Cutler's dispatcher objects. Events on 27 February 1989, semaphores the day after, timers on 2 March. On the 4th he did threads, the 5th APCs, the 6th DPCs and the 7th processes. Gary Kimura, Mark Lucovsky, Lou Perazzoli and Steve Wood have files dated that year too. Eleven years later Cutler is doing the AMD64 kernel, starting with initkr.c on 22 April 2000 and on into 2001, on a processor still in simulation. One register has to be written before another âto work around a bug in the simulatorâ. Forrest Foltz, porting the HAL, gets as far as âThe simulator takes about a day to go through this, so for rightâ and never finishes the thought. And in one place the date is whatever you make of â2-Feby-2000â.
It has been revealed that you might expect the first 64-bit Windows to be in the directory for the first 64-bit XP you could buy. Instead look beside alpha. The memory manager in axp64 has an entry by Landy Wang on 2 June 1998, âModifications for full 3-level 64-bit NT.â Someone took the trouble to draw where the addresses went.
That is virtual address space for a program, with another terabyte reserved elsewhere in the map for the system cache. The machine could have a great deal less physical RAM. Raymond Chen recalls that the initial work on 64-bit Windows, code name Sundown, ran on Alpha because those processors already existed while Intel's Itanium was still a simulator. You can see the distinction in Microsoft's April 1999 WinHEC demonstration, first Windows 2000 on a Merced emulator, then a physical four-processor Alpha with seven gigabytes of RAM. A December 2001 account confirms that the internal 64-bit Alpha builds were never released. The shipping XP 64-Bit Edition targeted Itanium. The folder preserves the real hardware platform on which the common Windows codebase first made that transition.
Some teams, mostly the graphics people and the 16-bit kernel, used an editor macro that stamped the exact time into their history blocks, down to the second. There are 370 unique stamps in the tree's C, header and assembly files, and 361 of them have a weekday that matches the calendar, a fair check on the dates an editor supplied. Fifty-eight fall between midnight and five in the morning, and fifty-seven of those belong to two people, Charles Whitmer and David Weise. Weise, whom Larry Osterman called the person "most responsible for the success of Windows 3.0", wrote a signal handler for the 16-bit kernel at 00:36 on Christmas Day 1989, months before Windows 3.0 shipped, and at 01:03 on 6 February 1990 he left a history note over one of its memory routines.
âI got no clue what the history of this thing is, all I know is that I got to fix it fast to prevent selector leak.â The stamp on the fix itself is forty-three minutes later.
Sources indicate that the clock can show you a whole succession of people in one function. HmgLock is the lock on GDI handles. Patrick Haluptzok wrote it in 1991, Charles Whitmer rewrote it in assembly in August 1992 (âThe common case falls straight throughâ), and Cutler added routines in September. A year later, in September 1993, Michael Abrash âTuned ASM codeâ. It would be about a year and a half before he went to id Software to work on Quake. In June 1995 Andrew Goossen âRewrote for Kernel Modeâ as graphics was being moved into the kernel for NT 4.0. That's five names in four years.
The people who wrote Windows wanted their names on the screen, and in this part of the tree there are at least five credit rolls, all of them hidden or switched off one way or another.
It has been revealed that next to the Beziers screensaver sits a file called winbez.pts that the build doesn't use. Every byte in it is inverted, so a search for text finds nothing. Flip the bits back and you get 468 names, sorted by first name, from Aaron Contorer to Zvi Berkovich, with Bill Gates, David Cutler, Helen Custer, Michael Abrash, James 'J' Allard and Jim Allchin somewhere in between (and no Steve Ballmer). The Beziers saver that did ship still has a secret mode in its window setup. Set bit 14 of its Width setting and it draws a spinning, pulsing ball of 1,500 dots instead of curves. The code around the ball still has the scaffolding for turning the dots into letters, a font, an off-screen bitmap for text, a text target for every dot and a picker over a list of strings. The list is empty, and the step that draws a string and sends the dots to it is gone.
Sources indicate that the OpenGL 3D Text screensaver checked what you typed against a keyword table inverted the same way. "volcano" showed seventeen volcanoes of the Cascades, "i love nt" answered "good?", and "not evil" showed 813 names, which at nine or ten seconds a name could take over two hours. Video for Windows had a roll you opened by clicking A-V-I in Morse code on a playing video. The NT CD Player had one you reached, in mini mode with no disc in, by right-clicking its display with Ctrl and Shift held and then right-clicking again, "dedicated to Penelope Broomer". The ActiveMovie team built theirs as a DirectShow source filter that plays the credits as video.
None of those credit rolls can be reached in XP. The keyword table is compiled out, the OpenGL savers are out of the build and their Direct3D rewrites have no keywords. The Morse knock is compiled out too, and XP ships a different CD Player. The rewrites lost a joke as well. The OpenGL 3D Pipes, set to mixed joints, drew a Utah teapot instead of a joint about once in a thousand. BLUE_MOON was 153, the random number that got you the teapot.
The code that draws it is commented "Horrors! It's the teapot!", and XP's 3D Pipes doesn't have it.
Microsoft later banned easter eggs from Windows outright, and Larry Osterman explained why in terms of Trustworthy Computing. You should be able to trust that there is nothing on your computer nobody planned, and hidden code can introduce security bugs. Fair enough. It's still a bit sad, because these rolls are the only lists I know of with all those names in one place, and you need a leak to read them.
In a recent development, so I'll end with a short one that needs no decoding. Jim Horne, Wes Cherry, Robert Donner and Curt Johnson, David Norris and Hans Spiller, Chris Peters, Peter Alschitz, Mark Lucovsky, Lou Perazzoli, Robert Rounthwaite and the Microsoft Research spam team, David Weise, Charles Whitmer. And the people whose names turn up wherever Windows learned to read right to left. Samer Arafeh (the complex-script language pack in 1996, the kashida inserter in 1998, the Hijri adjustment in 1999), Mohamed Abdel-Hamid (the mirroring code, with his name spelled four different ways across the files, which anyone with an Arabic name will recognise), and Mohamed Sadek (GDI+'s bidirectional algorithm in 2000, and fifty-four comments signed with his Microsoft alias across the tree, two dozen of them in the shell, one of them over a table that nobody was to change without asking him first). And the testers in the compatibility database, whose names I left out on purpose, since none of them signed up to be in a blog post.
Industry observers note that the copy I read is only part of the leak. By size, most of the 43 GB torrent was an archive of Microsoft patents, and most of the rest was older leaks (MS-DOS, NT 3.5 and 4, Windows 2000, Windows CE, the original Xbox, the Windows 10 Shared Source Kit and more) and some videos. The new part was one 2.9 GB archive holding two trees, XP SP1 and Windows Server 2003. I only read the XP one, and it isn't complete. Neither tree has Winlogon's source, so the XP that a developer compiled from it wouldn't install as it stood, while Server 2003, the more complete tree, did install once he put in a Winlogon from a retail copy. There's none of the activation code, as the licensing section notes. Thereâs no Pinball or Spider Solitaire, although shell/osshell/games/dirs lists both. The compiler source is missing too, along with a handful of scripts that the build calls. One community guide to building the leak reckons the XP and Server 2003 source together are about 70% of the real thing.
Recent findings suggest that every quote in the blog post was checked against the file it comes from. Its code blocks are copied straight out of the files with only tabs expanded and the common indentation taken off, and every count was made with rg over the tree. Where I say I couldn't find something, I mean I searched the tree and the web and came up empty, so it may still exist somewhere.
#Programming #History #Microsoft.