ftp.delorie.com/archives/browse.cgi | search |
Message-Id: | <2.2.32.19961223081104.008ef9d4@mail.calypso.net> |
Mime-Version: | 1.0 |
Date: | Mon, 23 Dec 1996 09:11:04 +0100 |
To: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
From: | Henrik Abelsson <henrik AT mailbox DOT calypso DOT net> |
Subject: | Re: SV: djgpp + allegro + win NT? |
Cc: | Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>, |
Jan Hubicka <hubicka AT ta DOT jcu DOT cz>, djgpp AT delorie DOT com |
At 19:09 1996-12-22 +0200, you wrote: > >On Fri, 20 Dec 1996, Shawn Hargreaves wrote: > >> Does anyone know any other ways to detect Windows/NT? > >One way to do that would be like so: > > #include <dos.h> > > if (_get_dos_version (1) == 0x0532) > /* we run in NT DOS box */ > else > /* some other environment */ > This works under NT 4.0 - Henrik <henrik AT mailbox DOT calypso DOT net>
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |