delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/14/10:18:02

From: "Tomas Kouba" <xkouba AT cs DOT felk DOT cvut DOT cz>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Detecting NT
Date: 14 Aug 1997 06:42:13 GMT
Organization: Czech Technical University
Lines: 15
Message-ID: <01bca87c$b21a2440$12c3d5c2@polo.netforce.cz>
References: <m0wyWcb-000S1kC AT inti DOT edu DOT ar>
NNTP-Posting-Host: clppp4.netforce.cz
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Salvador Eduardo Tropea (SET) <salvador AT inti DOT edu DOT ar> píše v článku
<m0wyWcb-000S1kC AT inti DOT edu DOT ar>...
> Eli wrote:
> > > Does anybody know how to detect if the current OS is NT?
> > 
> > This has come up before.  If memory serves, NT is the only platform
> > whose DOS box identifies itself as DOS version 5.50 when you call
> > function 3306h of interrupt 21h.  So just callig the DJGPP library
> > function `_get_dos_version' with a non-zero argument should be enough.
> 
Windows 3.x and 95 sets enviroment variable "windir" (lower case) this is
way to detect Windows.

	Tomas

- Raw text -


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