The AARD code was a segment of code in a beta release of Microsoft Windows 3.1 that would determine whether Windows was running on MS-DOS or PC DOS, rather than a competing workalike such as DR-DOS, and would result in a cryptic error message in the latter case. This XOR-encrypted, self-modifying, and deliberately obfuscated machine code used a variety of undocumented DOS structures and functions to perform its work, and appeared in the installer, WIN.COM, and several other executables in the OS.
The AARD code was originally discovered by Geoff Chappell on 17 April 1992 and then further analyzed and documented in a joint effort with Andrew Schulman. The name was derived from Microsoft programmer Aaron R. Reynolds (1955–2008), who used "AARD" to sign his work; "AARD" was found in the machine code of the installer. Microsoft disabled the AARD code for the final release of Windows 3.1, but did not remove it, so that it could have become reactivated later by the change of a single byte in an installed system, thereby constituting a "smoking gun".
The rationale for the AARD code came to light when internal memos were released during the United States v. Microsoft Corp. antitrust case in 1999. Internal memos released by Microsoft revealed that the specific focus of these tests was DR-DOS. At one point, Microsoft CEO Bill Gates sent a memo to a number of employees, reading "You never sent me a response on the question of what things an app would do that would make it run with MS-DOS and not run with DR-DOS. Is there [sic] feature they have that might get in our way?" Microsoft Senior Vice President Brad Silverberg later sent another memo, stating: "What the [user] is supposed to do is feel uncomfortable, and when he has bugs, suspect that the problem is DR-DOS and then go out to buy MS-DOS."
Following the purchase of DR-DOS by Novell and its renaming to "Novell DOS", Microsoft Co-President Jim Allchin stated in a memo, "If you're going to kill someone there isn't much reason to get all worked up about it and angry. Any discussions beforehand are a waste of time. We need to smile at Novell while we pull the trigger."
What had been DR-DOS changed hands again. The new owner, Caldera, Inc., began a lawsuit against Microsoft over the AARD code, Caldera v. Microsoft, which was later settled. It was believed that the settlement ran in the order of $150 million, but was revealed in November 2009 with the release of the Settlement Agreement to be $280 million.
- Reynolds, Aaron R. (1993-02-24) [1991-12-06]. "msdos detection - hot job for you" (PDF) (Court document). MS-PCA 1164868-1164869; X0532177-X0532178; Comes v. Microsoft Exhibit 1133; Gates Deposition Exhibit 85. Archived (PDF) from the original on 2018-08-03. Retrieved 2018-08-04. (NB. This court document is a copy of a mail by Aaron Reynolds written in 1991 and forwarded by one of its recipients, Phil Barrett, in 1993.)
- Chappell, Geoff (2011-11-24) [1999-09-03, 1992-04-17]. "Record of AARD Research". Archived from the original on 2016-11-25. Retrieved 2016-11-25. (Web article published by Geoff Chappell on 3 September 1999 about an e-mail sent to Andrew Schulman on 17 April 1992.)
- Chappell, Geoff (2011-11-24) [1999-05-08]. "First Public AARD Details". Archived from the original on 2013-04-02.
- Schulman, Andrew (September 1993). "Examining the Windows AARD Detection Code - A serious message--and the code that produced it". Dr. Dobb's Journal. Archived from the original on 2005-12-10. Retrieved 2013-10-05.
- Schulman, Andrew; Brown, Ralf D.; Maxey, David; Michels, Raymond J.; Kyle, Jim (1994). Undocumented DOS - A programmer's guide to reserved MS-DOS functions and data structures - expanded to include MS-DOS 6, Novell DOS and Windows 3.1 (2 ed.). Addison-Wesley. ISBN 0-201-63287-X. ISBN 978-0-201-63287-3.
- Meyer, Egbert (1998-08-27). "Microsoft: Vorgetäuschter Bug legte DR-DOS lahm". Heise online (in German). Verlag Heinz Heise. Archived from the original on 2018-07-14. Retrieved 2018-07-14. 
- "Aaron R. Reynolds". Seattle Times. Obituary. 2008-08-04. Archived from the original on 2016-03-04 – via Legacy.
- Dellert, Brian (1998-10-21). "Microsoft Plays Hardball". Eat the State!. 3 (7). Archived from the original on 2008-04-20. Retrieved 2008-08-21.
- Pournelle, Jerry (2000-04-01). "The Microsoft Monopoly Debates". Archived from the original on 2008-08-29. Retrieved 2008-08-21.
- Zetter, Kim (2013-09-24). "How a Crypto 'Backdoor' Pitted the Tech World Against the NSA"". wired.com. Archived from the original on 2014-02-01.
- Paul, Matthias (2000-09-18). "25 years of DR DOS history - Digital Research DOS history". FreeDOS.org. Archived from the original on 2016-11-25. Retrieved 2013-10-05.
See footnote #19 (BDOS 1067h "DR DOS 6.0 Windows 3.1 update, April 1992"; 1992-03, 1992-04-07: "This public DR DOS 6.0 update only includes patches addressing full Windows 3.1 compatibility. There should have been a full "business update" for registered users, shipping a little bit later."), #27 (BDOS 1072h "Novell DOS 7 Panther/Smirnoff BETA 3", 1993-09: "This issue does not have workarounds for Windows 3.1 AARD code."), #29 (BDOS 1072h "Novell DOS 7 German release"; 1994-02-22: "This issue is known to have workarounds for Windows 3.1 AARD code. This should also apply to the earlier English issue.")
- Susman, Stephen D.; Eskridge III, Charles R.; Southwick, James T.; Susman, Harry P.; Folse III, Parker C.; Palumbo, Ralph H.; Harris, Matthew R.; McCune, Philip S.; Engel, Lynn M.; Hill, Stephen J.; Tibbitts, Ryan E. (April 1999). "In the United States District Court - District of Utah, Central Division - Caldera, Inc. vs. Microsoft Corporation - Consolidated statement of facts in support of its responses to motions for summary judgement by Microsoft Corporation - Case No. 2:96CV 0645B" (Court document). Caldera, Inc. Archived from the original on 2018-08-05. Retrieved 2018-08-05.
- Lea, Graham (1999-11-05). "How MS played the incompatibility card against DR-DOS - Real bear-traps, and spurious errors". The Register. Archived from the original on 2016-11-25. Retrieved 2013-09-26.
- Bridis, Ted (1998-08-28). "Windows Warning Resurfaces in Suit". Associated Press. Archived from the original on 2016-11-25. Retrieved 2016-11-25.
- Goodin, Dan (1999-04-28). "Microsoft emails focus on DR-DOS threat". CNET News. Archived from the original on 2016-03-10. Retrieved 2008-08-21.
- Allchin, Jim (1993-09-18). "Customers and Novell" (PDF) (Court document). pp. 72–73. MS 0186262-0186263; Comes v. Microsoft Exhibit 1793; Allchin Deposition Exhibit 14. Archived (PDF) from the original on 2018-08-03. Retrieved 2018-08-04.
- Susman, Stephen D.; Eskridge III, Charles R.; Susman, Harry P.; Southwick, James T.; Folse III, Parker C.; Borchers, Timothy K.; Palumbo, Ralph H.; Harris, Matthew R.; Engel, Lynn M.; McCune, Philip S.; Locker, Lawrence C.; Wheeler, Max D.; Hill, Stephen J.; Tibbitts, Ryan E. (May 1999). "In the United States District Court - District of Utah, Central Division - Caldera, Inc. vs. Microsoft Corporation - Case No. 2:96CV 0645B - Caldera, Inc.'s Memorandum in opposition to defendant's motion for partial Summary Judgment on plaintiff's "Technological Tying" claim" (Court document). Caldera, Inc. Archived from the original on 2018-08-05. Retrieved 2018-08-05.
- Ball, Lyle (1999-04-28). "Caldera submits evidence to counter Microsoft's motions for partial summary judgment" (Press release). Caldera, Inc. Archived from the original on 2018-08-05. Retrieved 2018-08-05.
- Wheeler, Max D.; Hill, Stephen J.; Tibbitts, Ryan E.; Susman, Stephen D.; Eskridge III, Charles R.; Paterson, Thomas W.; Dow, Stuart J.; Palumbo, Ralph H.; Folse III, Parker C.; Borchers, Timothy K. "In the United States District Court - District of Utah, Central Division - Caldera, Inc. vs. Microsoft Corporation - Case No. 2:96CV 0645B - First amended complaint and jury demand". Tech Law Journal (Court document). Archived from the original on 2016-11-25.
- Lea, Graham (2000-01-13). "Caldera vs Microsoft - the settlement". BBC News. Archived from the original on 2008-10-05. Retrieved 2008-08-21.
- Burt, Thomas W.; Sparks, Bryan W. (2000-01-07). "Settlement agreement - Microsoft Corporation and Caldera, Inc. reach agreement to settle antitrust lawsuit" (PDF) (Faxed court document). Case 1:05-cv-01087-JFM, Document 104-8, Filed 2009-11-13; NOV00107061-NOV00107071; LT2288-LT2298; Lan12S311263739.1; Exhibit A. Retrieved 2018-08-03.
[…] Microsoft will pay to Caldera, by wire transfer in accordance with written instructions provided by Caldera, the amount of two hundred eighty million dollars ($280,000,000), as full settlement of all claims or potential claims covered by this agreement […](NB. This document of the Caldera v. Microsoft case was an exhibit in the Novell v. Microsoft and Comes v. Microsoft cases.)
- Wallis, Richard J.; Aeschbacher, Steven J.; Bettilyon, Mark M.; Webb, Jr., G. Stewar; Tulchin, David B.; Holley, Steven L. (2009-11-13). "Microsoft's memorandum in opposition to Novell's renewed motion for summary judgement on Microsoft's affirmative defenses and in support of Microsoft's cross-motion for summary judgement" (PDF) (Court document). United States District Court, District of Maryland. p. 16. Novell, Inc. v. Microsoft Corporation, Civil Action No. JFM-05-1087. Retrieved 2018-08-03.
[…] Microsoft paid $280 million to Caldera to settle the case, and $35.5 million of the settlement proceeds were provided by Caldera to Novell as a so-called "royalty." […] Dissatisfied with that amount, Novell filed suit in June 2000 against Caldera (succeeded by The Canopy Group), alleging that Novell was entitled to even more. […] Novell ultimately prevailed, adding $17.7 million to its share of the monies paid by Microsoft to Caldera, for a total of more than $53 million […]
- Wilcox, Joe (2000-01-11). "Caldera settlement shows a new side of Microsoft". cnet. Archived from the original on 2016-11-25. Retrieved 2009-01-19.
- Jones, Pamela (2009-11-23). "Exhibits to Microsoft's Cross Motion for Summary Judgment in Novell WordPerfect Case". Groklaw. Archived from the original on 2013-08-21. Retrieved 2011-10-22.
[…] exhibits attached to Microsoft's Memorandum of Law in support of Microsoft's cross motion for summary judgment in the Novell v. Microsoft antitrust litigation. We finally find out what Microsoft paid Caldera to settle the DrDOS litigation back in 2000: $280 million. We even get to read the settlement agreement. It's attached as an exhibit. […] The settlement terms were sealed for all these years, but […] now that mystery is solved. […] We also find out what Caldera/Canopy then paid Novell from that $280 million: $35.5 million at first, and then after Novell successfully sued Canopy in 2004, Caldera's successor-in-interest on this matter, an additional $17.7 million, according to page 16 of the Memorandum. Microsoft claims that Novell is not the real party in interest in this antitrust case, and so it can't sue Microsoft for the claims it has lodged against it, because, Microsoft says, Novell sold its antitrust claims to Caldera when it sold it DrDOS. So the exhibits are trying to demonstrate that Novell got paid in full, so to speak, via that earlier litigation. As a result, we get to read a number of documents from the Novell v. Canopy litigation. Novell responds it retained its antitrust claims in the applications market. […]
- Osterman, Larry (2004-08-12). "AARDvarks in your code". Archived from the original on 2016-11-25. Retrieved 2016-11-25.
- Osterman, Larry (2004-08-13). "So why didn't the Windows guys just remove the AARD code from the system?". Archived from the original on 2016-11-25. Retrieved 2016-11-25.
- Chappell, Geoff (1999-05-08). "The AARD Code". Archived from the original on 2010-01-13. (Details and initial discovery)
- Wilke, John R. (1998). "Old e-mail dogs Microsoft in fighting antitrust suits". The Wall Street Journal. Dow Jones & Company, Inc. Archived from the original on 2016-11-25. Retrieved 2016-11-25. (Caldera v. Microsoft details)
- Dr John (1999). "Survey Says: "MS OK", but Dr. John is not convinced". KickAss Gear. Archived from the original on 2016-11-25. Retrieved 2016-11-25. (Site with email excerpts from Microsoft and an example of tripping the AARD code (XMS error))