delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/03/12/14:34:06

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Gerrit van Niekerk" <gerritvn AT gpvno DOT co DOT za>
Organization: GPvNO
To: djgpp AT delorie DOT com
Date: Mon, 12 Mar 2007 20:59:54 +0200
MIME-Version: 1.0
Subject: Re: How to detect WindowsNT/2k/XP from my DJGPP program?
Message-ID: <45F5BF4A.11731.69C0B44@gerritvn.gpvno.co.za>
In-reply-to: <1173711898.186977.177240@n33g2000cwc.googlegroups.com>
References: <1173711898 DOT 186977 DOT 177240 AT n33g2000cwc DOT googlegroups DOT com>
X-mailer: Pegasus Mail for Windows (4.41)
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 12 Mar 2007 at 8:04, Glaux wrote:
> could you tell me how simply and reliable runtime check if my DJGPP
> prog is running under WinNT-XP dos box? I need to exclude some code
> from execution under NT.

      if (_os_trueversion == 0x532) {	/* Windows NT, 2000, XP */

      }
-- 
Gerrit van Niekerk
GP van Niekerk Ondernemings BK
Roosstraat 211, Meyerspark, 0184, South Africa
Tel: +27(12)8036501 Fax SA: 0866 413 555
Cell: +27(73)6891370
Fax Int'l: +1(206)2034139
Email: gerritvn AT gpvno DOT co DOT za
Web: http://www.gpvno.co.za



- Raw text -


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