delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/06/22/06:00:12

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Rod Pemberton" <boo AT fasdfrewar DOT cdm>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Detecting Windows NT in DJGPP
Date: Mon, 22 Jun 2015 05:45:26 -0400
Organization: Aioe.org NNTP Server
Lines: 52
Message-ID: <op.x0mld0omyfako5@localhost>
References: <201506091712 DOT t59HCPci004068 AT delorie DOT com>
<55775E64 DOT 2090901 AT gmail DOT com>
<CAB9Rao-Njdr-CB=vqHnb+TVDmXu3eXqsB5CHB7V0kDwBEsM-WQ AT mail DOT gmail DOT com>
<5579ED42 DOT 6070309 AT gmail DOT com>
<CAB9Rao8cvu3hLEf=KsRWn7woXka0F9Aax7uM9Jj5QqCO=1bL8w AT mail DOT gmail DOT com>
<5579FE8D DOT 3080501 AT gmail DOT com> <557B436F DOT 1050101 AT gmx DOT de>
<fe60143b-fe03-451f-84d4-a7d59a67cefc AT googlegroups DOT com>
<d1f33445-bef3-42d5-a343-55fed9868908 AT googlegroups DOT com>
<779efaf6-8ebf-4f2a-a526-a2773e3909b4 AT googlegroups DOT com>
<4131b54f-b34d-4a84-ada6-3443ed9efce9 AT googlegroups DOT com>
<20150618-004800 DOT 313 DOT 0 AT Your-Name-Here DOT News>
<fda73a64-d86c-400d-a78d-4d11b067d138 AT googlegroups DOT com>
<CAA2C=vCYCjih4r38XZ45TURJPxpKAF40kakFM8iRizDH08QbVQ AT mail DOT gmail DOT com>
<65ad24c7-0888-4526-9395-e262f348a021 AT googlegroups DOT com>
<5584B697 DOT 60303 AT gmail DOT com>
<CAA2C=vDpU5XoXZ=3MNiaE1zY8FEwGm_Cki4bd8mQpBFJ9DZ2Vw AT mail DOT gmail DOT com>
<5587B696 DOT 10304 AT gmail DOT com>
<CAA2C=vCOrPG=5cSvFn89aqy-1BDu=3TGbVbxXovhrMrTH29RiQ AT mail DOT gmail DOT com>
<5587C26B DOT 6010800 AT gmail DOT com>
NNTP-Posting-Host: n4wpt9zq8xR26Ttf9mo2BA.user.speranza.aioe.org
Mime-Version: 1.0
X-Complaints-To: abuse AT aioe DOT org
User-Agent: Opera Mail/12.16 (Linux)
X-Notice: Filtered by postfilter v. 0.8.2
Bytes: 3386
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Mon, 22 Jun 2015 04:08:11 -0400, Frank Sapone (emoaddict15 AT gmail DOT com)  
<djgpp AT delorie DOT com> wrote:

>> The allegro library (allegro-4.2.3.1, http://alleg.sourceforge.net/)
>> has a detect_os() procedure in its src/dos/dsystem.c. Its NT detection
>> is based on environment variable check, though, along with a call to
>> _get_dos_version().
>>
>> --
>> O.S.
>
> I was hoping maybe somebody knew of a quirk of using regs to check a  
> value that NTVDM would only give back.


Usenet is not an instantaneous medium.  Please wait for a response.
FYI, you're not posting to Google Groups, but through it and out
to the Usenet group hierarchy.  I.e., comp.os.msdos.djgpp belongs
to the comp.* Usenet group hierarchy, which is one of nine:

Usenet
https://en.wikipedia.org/wiki/Usenet


As for your question regarding detecting "Windows NT",
please read the "Notes:" section here and here:

RBIL "INT 21 - DOS 2+ - GET DOS VERSION"
http://www.delorie.com/djgpp/doc/rbinter/id/22/27.html

RBIL "INT 21 - DOS 5+ - GET TRUE VERSION NUMBER"
http://www.delorie.com/djgpp/doc/rbinter/id/41/27.html

RBIL is Ralf Brown's Interrupt List.  It's available in file
form from the original author as well as html via DJGPP and
another website.


Although the original DJGPP contributors should have some deep
insights into your answer of determining NTVDM or Windows DOS
console etc, you're more likely to get a useful response on
comp.os.msdos.programmer or the "DOS Ain't Dead forum":

"DOS Ain't Dead forum"
http://www.bttr-software.de/forum/forum.php


Rod Pemberton

-- 
It's time to put an end to gun violence!
Use a hammer ...

- Raw text -


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