Message-ID: From: Shawn Hargreaves To: djgpp AT delorie DOT com Subject: Re: Detect NT from within NT DOS emulation? Date: Tue, 4 Jan 2000 14:27:20 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Reply-To: djgpp AT delorie DOT com Eli Zaretskii writes: > Call the library function _get_dos_version with a non-zero argument. > If it returns version 5.50 (0532 in hex), you are on NT. Allegro also checks for the environment variable "OS" containing the string "Windows_NT" (in addition to what you describe, and decides it is running under NT if either check succeeds). I don't remember exactly why the environment method was added (originally it only used the DOS version number), but presumably there was some situation where the version wasn't being reported correctly... Shawn Hargreaves.