From: "Tomas Kouba" 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: NNTP-Posting-Host: clppp4.netforce.cz To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Salvador Eduardo Tropea (SET) píše v článku ... > 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