delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/21/08:45:45

Date: Wed, 21 Feb 2001 15:38:08 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Alain DOT Borel AT icma DOT unil DOT ch
cc: djgpp AT delorie DOT com
Subject: Re: Win2k vs Win NT4 -how to distinguish
In-Reply-To: <3a93b590@cisun5000.unil.ch>
Message-ID: <Pine.SUN.3.91.1010221153352.20003B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 21 Feb 2001 Alain DOT Borel AT icma DOT unil DOT ch wrote:

> > Yes.  Except that AFAIK VER on NT and W2K issues a Win32 API call,
> > which DJGPP programs cannot do.
> But does the INTxx used by DOS VER return the same value under NT4 and W2K?

Yes, both NT4 and W2K return the same value when you call function 30h of 
Int 21h or subfunction 6 of function 33h of Int 21h.  That's the crux of 
the problem: they both identify themselves as DOS 5.10 (IIRC).

You should be able to get the Windows version with Int 2Fh/AX=1600h, but 
I think NT4 and W2K return the same result there as well.

- Raw text -


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