delorie.com/archives/browse.cgi | search |
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: | Tue, 13 Mar 2007 21:04:43 +0200 |
MIME-Version: | 1.0 |
Subject: | Re: How to detect WindowsNT/2k/XP from my DJGPP program? |
Message-ID: | <45F711EB.19437.BC6CC64@gerritvn.gpvno.co.za> |
In-reply-to: | <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>, <1173783638 DOT 515843 DOT 245080 AT c51g2000cwc 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. > > > Gerrit van Niekerk napsal: > > if (_os_trueversion == 0x532) { /* Windows NT, 2000, XP */ > > > > } On 13 Mar 2007 at 4:00, Glaux wrote: > 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? I found it in the code for a high resolution clock (uclock.c). Perhaps DJD can comment on how official it is. Gerrit
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |