This is from a disassembling of Windows 2000 code.
This will probably only make sense to more of my “geeky” readers. 🙂
I wonder how much of this, if any, is true?
There are various references to idiots and morons, some external, some within Microsoft. The file private\ntos\rtl\heap.c, which dates from 1989, tells us
// The specific idiot in this case is Office95, which likes
// to free a random pointer when you start Word95 from a desktop
// shortcut.
The file private\ntos\w32\ntuser\kernel\swp.c from 11-Jul-1991 points at
* for idiots like MS-Access 2.0 who SetWindowPos( SWP_BOZO
* and blow away themselves on the shell, then lets
* just ignore their plea to be removed from the trayMorons also abound, as in this selection
private\genx\shell\inc\prsht.w:
// we are such morons. Wiz97 underwent a redesign between IE4 and IE5
private\shell\ext\ftp\ftpdrop.cpp:
We have to do this only because Exchange is a moron.private\shell\shdoc401\unicpp\desktop.cpp:
// We are morons. We changed the IDeskTray interface between IE4private\shell\browseui\itbar.cpp:
// should be fixed in the apps themselves. Morons!Microsoft programmers also take their duty to warn others seriously. There are over 4,000 references to “hacks”, mostly warnings. These include
private\inet\mshtml\src\core\cdbase\baseprop.cxx:
// HACK! HACK! HACK! (MohanB) In order to fix #64710 at this very late
private\inet\mshtml\src\core\cdutil\genutil.cxx:
// HACK HACK HACK. REMOVE THIS ONCE MARLETT IS AROUNDprivate\inet\mshtml\src\other\moniker\resprot.cxx:
// <HACK>
goto EndHack;
// </HACK>private\inet\mshtml\src\site\layout\flowlyt.cxx:
// God, I hate this hack …private\inet\wininet\urlcache\cachecfg.cxx:
// Dumb hack for back compat. *sigh*private\inet\wininet\urlcache\filemgr.cxx:
// ACHTUNG!!! this is a special hack for IBM antivirus softwareprivate\ispu\pkitrust\trustui\acuictl.cpp:
// HACK ALERT, believe it or not there is no way to get the height of the current
// HACK ON TOP OF HACK ALERT,private\ntos\udfs\devctrl.c:
// Add the hack-o-ramma to fix formats.private\shell\shdoc401\unicpp\sendto.cpp:
// Mondo hackitude-o-rama.private\ntos\w32\ntcon\server\link.c:
// HUGE, HUGE hack-o-rama to get NTSD started on this process!private\ntos\w32\ntuser\client\dlgmgr.c:
// HACK OF DEATH:private\shell\lib\util.cpp:
// TERRIBLE HORRIBLE NO GOOD VERY BAD HACKprivate\ntos\w32\ntuser\client\nt6\user.h:
* The magnitude of this hack compares favorably with that of the national debt.While surprisingly informal, there are limits to how far the programmers go. There are no derogatory references to Microsoft or Windows themselves. Bill Gates is never mentioned. There are no racist or homophobic slurs. I saw only one drug reference.
private\shell\ext\tweakui\genthunk.c:
* CallProc32W is insane. It’s a variadic function that uses
* the pascal calling convention. (It probably makes more sense
* when you’re stoned.)