delorie.com/archives/browse.cgi | search |
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 ...
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |