delorie.com/archives/browse.cgi | search |
From: | "Michael Allison" <michael DOT allison2 AT sympatico DOT ca> |
Newsgroups: | comp.os.msdos.djgpp |
References: | <Pine DOT SUN DOT 3 DOT 91 DOT 1010221153352 DOT 20003B-100000 AT is> |
Subject: | Re: Win2k vs Win NT4 -how to distinguish |
Lines: | 20 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.50.4133.2400 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
Message-ID: | <HJdm6.296000$f36.11023441@news20.bellglobal.com> |
Date: | Sun, 25 Feb 2001 20:15:35 GMT |
NNTP-Posting-Host: | 216.209.119.164 |
X-Trace: | news20.bellglobal.com 983132135 216.209.119.164 (Sun, 25 Feb 2001 15:15:35 EST) |
NNTP-Posting-Date: | Sun, 25 Feb 2001 15:15:35 EST |
Organization: | Sympatico |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
"Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> wrote in message news:Pine DOT SUN DOT 3 DOT 91 DOT 1010221153352 DOT 20003B-100000 AT is... > On 21 Feb 2001 Alain DOT Borel AT icma DOT unil DOT ch wrote: > 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. This may not be elegant, but you could issue the DOS long filename API check, in combination with the Windows version call. NT did not support the long filename API, but Windows 2000 does. I'm not sure about interaction with the NT LFN driver that's floating about.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |