delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/03/13/06:16:24

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Glaux" <glaux AT centrum DOT cz>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How to detect WindowsNT/2k/XP from my DJGPP program?
Date: 13 Mar 2007 04:00:38 -0700
Organization: http://groups.google.com
Lines: 28
Message-ID: <1173783638.515843.245080@c51g2000cwc.googlegroups.com>
References: <1173711898 DOT 186977 DOT 177240 AT n33g2000cwc DOT googlegroups DOT com>
<45F5BF4A DOT 11731 DOT 69C0B44 AT gerritvn DOT gpvno DOT co DOT za>
NNTP-Posting-Host: 89.176.103.125
Mime-Version: 1.0
X-Trace: posting.google.com 1173783642 15394 127.0.0.1 (13 Mar 2007 11:00:42 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Tue, 13 Mar 2007 11:00:42 +0000 (UTC)
In-Reply-To: <45F5BF4A.11731.69C0B44@gerritvn.gpvno.co.za>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: c51g2000cwc.googlegroups.com; posting-host=89.176.103.125;
posting-account=79KgoA0AAADKuOLK3k0Y3qVqk-KGfm77
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
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

Thanks, it's really simple.
But I cannot find any reference in my DJGPP docs to "_os_trueversion"
only in dos.h and libc.
I'd like see some description which shows what value this variable can
get for various OS.
If I understand well It was added in DJDEV  2.04 beta, is it oficial
or some kind of hack? Can I rely it will be included in (maybe some)
future versions of DJGPP?

Gerrit van Niekerk napsal:
> 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