delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/04/09:25:21

Message-ID: <F77915E7F086D31197F4009027CC81C917B554@probe-2.as-london.acclaim.com>
From: Shawn Hargreaves <SHargreaves AT acclaimstudios DOT co DOT uk>
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)
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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019