delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/06/22/06:13:14

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.no; s=s2048; t=1434967189; bh=qIaoISn7hndmxAUrh5FGy/2VEpgBSqGPVh3f4JYGYNQ=; h=Date:From:To:Subject:References:In-Reply-To:From:Subject; b=fUtdGi2gujrCuhvdTD+Hwupv+Fc4lEEIuaOAjN3Y73NLmxUqO/5yGFe4D+UYLpQmQ3i/xKEZQAvJbyoRrIILqfgHJ9/WFNOMFKsWydePZs/SKQz/d856KXPcSz4zFvlhYuNOT4umDRhu/TeKtq4P8ORxXvEsCigkvtRfjBpmVT3QxlYrFQADNSazMM81zHmWR1JCScTDpU9oTQ3bD/s7u2eaGqtJgdlWFBMPk5UcKX2dJJ4miy8YVQkRwkJiiXTZckDGYr8CzoWuFAv0GmLYm6VOv/tkWCFElb/XboVZzLGcfyIySdcDV7MU9Kt3Ds4w0++qV5ieBdIN53tRw6iYXg==
X-Yahoo-Newman-Id: 111904 DOT 57974 DOT bm AT smtp118 DOT mail DOT ir2 DOT yahoo DOT com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: IKk2rb8VM1mRE6AfutoQFefBkj13L_VWuy7VUhPvL2Km1JH
QraGrgN_ZTpJiPVJPBJMFJPUvCz07hcL8PNv7RcULD8gt5y47MJRRIXvCWc8
4XcUEPuKLN9ec38eGb1aIjakBpd_.F4fDwMOs4QmSHWStnBiBdlVwUw6scEV
wYekRswcY2djd8uE7By4n5uHe1d0PNTNBeJgmyEnm3dTOmrdXFsDD.DseGv5
z6G6b3sPbtGxG5AWvZoWIaPZ3H9VrJe_u51QpAOsF4daEFMxFtnPfuIEOqU8
I85CwBkYg.3Q_IcWFBzKuGXU4Vr2L7YUT51z2mbEDMvLbb1XpqJR83rhK4dT
s_I_i_qXOXwPTCogc5YXueO0fqLKM4ldsWpgA6wMsdTQkn0tLxu8l7geASJL
O8sLN9v0jiVdtCOT3NGasgOOmZoBtR0JsvO0ccgVQJaIkrIiN5Xd4BbBeqXj
v7SlzlFqctFM7XGWxyjRz5j1TOGjHmTcXLud4D46pN_V7HDC3unJe.wVGHn3
zAinEkp8gbEF_QOupW844bK644lIHG37ZgursozwS4DByMlyL
X-Yahoo-SMTP: 8zhYLGyswBB3AGU8c4pvFIFOfA--
Message-ID: <5587DC97.6010503@yahoo.no>
Date: Mon, 22 Jun 2015 11:59:51 +0200
From: "Gisle Vanem (gvanem AT yahoo DOT no)" <djgpp AT delorie DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33.1
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Detecting Windows NT in DJGPP
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>
In-Reply-To: <5587C26B.6010800@gmail.com>
Reply-To: djgpp AT delorie DOT com

Frank Sapone (emoaddict15 AT gmail DOT com) wrote:

> I was hoping maybe somebody knew of a quirk of using regs to check a value that NTVDM would only give back.

djgpp already has a check for the true-version. Look in
.\src\LIBC\DOS\DOS\getdos_v.c. Hence use something like:

   if (_get_dos_version(1) == 0x0532)
     puts ("NTVDM");

I.e. DOS 5.50.

-- 
--gv

- Raw text -


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