Lobsters - 03 Dec 2026
Page 8 of 10
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.
// This function tries to unpack BX entries from the enum buffer as
// soon as control is returned after the call to the redir via DoIntx. BUT
// IT DOESN'T LOOK AT THE RETURN CODE FIRST. As Sam Kinnison used to say
// AAAAAAAAAAAAAAARRRRRGH AAAAAAARGHH AAAAAAARGHHHHHHH!!!!!!!
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.
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.
/*** AWESOME HACK ALERT!!!
*
* The low byte of the WF?PRESENT state flags must NOT be the
* same as the low byte of the WFBORDER and WFCAPTION flags,
* since these are used as paint hint masks. The masks are calculated
* with the MaskWF macro below.
*
* The magnitude of this hack compares favorably with that of 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."
// Oops! We forgot to convert these constants to net byte order in the code so we
// are really using port 47624 (0xBA08) instead of 2234 (0x08BA)
// We are living with the mistake.
#define SERVER_STREAM_PORT 2234
#define SERVER_DGRAM_PORT 2234
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.
The above procedure was not generating quite the same WRITE.EXE as we've
previously had (Win 2.x). In talking with anyone who's ever been involved
at all, this is the information I have learned:
1. Nobody wants this product or claims responsibility for it.
2. It has been a nightmare for everyone who has worked on, with,
or around it.
They also had a file called EDM.EDM, on which the readme observes "hey, file naming is our specialty here at MS".
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!!!".
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?"
What Microsoft said about everyone else
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.
// Compaq machines have their own special ways to be busted. So,
// when dealing with Compaq, never believe their MP table at all.
// Go straight to probing the hardware.
//
if (!strstr(PcMpTablePtr->OemId, "COMPAQ")) {
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 says it's still playing. The author had thought Media Vision had the field to itself in this sort of "Creativity".
// because Creative Labs thinks they know what they are doing when
// they don't, we cannot rely on the unprepare succeeding like it
// should after they have posted the header back to us... they fail
// the waveInUnprepareHeader with WAVERR_STILLPLAYING (21h) even
// though the header has been posted back with the WHDR_DONE bit
// set!!
//
// absolutely smurphingly brilliant! and i thought Media Vision was
// the leader in this type of 'Creativity'!! they have competition!
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.
// At least one vendor uses the y from LPTx.y to determine the
// location of their device in the 1284.3 daisy chain. We
// have chastised this vendor for using this undocumented
// interface and they have apologized profusely and promised
// to try to avoid using undocumented interfaces in the future
// (at least without telling us that they are doing so).
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".
L"WordPro", // 285065: Lotus WordPro, a particularly poorly implemented app.
L"SmartCtr", // It's WordPerfect compat menu is the elephant man of modern software.
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?"
The rest of the jokes
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.
; Invalidate the processor cache so that any stray gamma
; rays (I'm serious) that may have flipped cache bits
; while in S1 will be ignored.
;
; Honestly. Intel asked for this. I'm serious.
;
;.586
; invd
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."
// "I'm sorry, Dave, I can't let you do that."
LWSTDAPI_(void) SHRestrictedMessageBox(HWND hwnd)
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.
// hVictim is a handle to a process
// last meal is the scheduled execution date
HRESULT CProcKillerTimer::ScheduleAssassination(HANDLE hVictim, FILETIME 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 big guy is mad about everything".
data->m_severity = 1;
data->m_time = COleDateTime(1998, 1, 14, 12, 30, 0);
data->m_EClass = _T("End of World");
data->m_server = _T("Reality");
data->m_desc = _T("The big 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.
/*
* WIN_CFGPRESENT is used to indicate that the Citrix configuration
* information is present in the User Parameters section of the user's
* SAM record.
*/
#define WIN_CFGPRESENT L"CfgPresent"
#define CFGPRESENT_VALUE 0xB00B1E55
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 says "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.
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.
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", says the loop.
[IllegalWords]
Microsoft
%msft_loc1%
%msft_loc2%
%msft_loc3%
%msft_loc4%
%msft_loc5%
%msft_loc6%
Where the source lived
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.
****************************************************
* This file is for faking "inallprj" to work under *
* a Source Depot client -- you are *NOT* enlisted *
* in a SLM project here!!! *
****************************************************
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 new 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.
%depot_list = (("Admin" => "admindepot.sys-ntgroup.ntdev.microsoft.com:2002"),
("Base" => "basedepot.sys-ntgroup.ntdev.microsoft.com:2003"),
("COM" => "comdepot.sys-ntgroup.ntdev.microsoft.com:2004"),
("Drivers" => "driversdepot.sys-ntgroup.ntdev.microsoft.com:2005"),
("DS" => "dsdepot.sys-ntgroup.ntdev.microsoft.com:2006"),
("EndUser" => "enduserdepot.sys-ntgroup.ntdev.microsoft.com:2007"),
("InetCore" => "inetcoredepot.sys-ntgroup.ntdev.microsoft.com:2008"),
("InetSrv" => "inetsrvdepot.sys-ntgroup.ntdev.microsoft.com:2009"),
("MultiMedia" => "multimediadepot.sys-ntgroup.ntdev.microsoft.com:2010"),
("Net" => "netdepot.sys-ntgroup.ntdev.microsoft.com:2011"),
("PrintScan" => "printscandepot.sys-ntgroup.ntdev.microsoft.com:2012"),
Next page | Previous page | More Lobsters | Headlines
Original: https://lr0.org/blog/p/winxp/