X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Rod Pemberton" 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: References: <201506091712 DOT t59HCPci004068 AT delorie DOT com> <55775E64 DOT 2090901 AT gmail DOT com> <5579ED42 DOT 6070309 AT gmail DOT com> <5579FE8D DOT 3080501 AT gmail DOT com> <557B436F DOT 1050101 AT gmx DOT de> <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> <65ad24c7-0888-4526-9395-e262f348a021 AT googlegroups DOT com> <5584B697 DOT 60303 AT gmail DOT com> <5587B696 DOT 10304 AT gmail DOT com> <5587C26B DOT 6010800 AT gmail DOT com> NNTP-Posting-Host: n4wpt9zq8xR26Ttf9mo2BA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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) 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 ...