www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/21/20:14:12

From: Richard Dawe <richdawe AT bigfoot DOT com>
Newsgroups: comp.os.msdos.programmer,comp.os.msdos.djgpp
Subject: Re: Is DOS dead?
Date: Tue, 21 Mar 2000 21:03:40 +0000
Organization: Customer of Planet Online
Lines: 41
Message-ID: <38D7E3AC.F6ED6042@bigfoot.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000314094608 DOT 4527E-100000 AT is> <38CE19B2 DOT 69C7 AT gmx DOT net> <Pine DOT SUN DOT 3 DOT 91 DOT 1000315104128 DOT 17230G-100000 AT is> <38CF7CED DOT 505A AT gmx DOT net> <Pine DOT SUN DOT 3 DOT 91 DOT 1000315185511 DOT 20407P-100000 AT is> <38D0B4D1 DOT 380F AT gmx DOT net> <Pine DOT SUN DOT 3 DOT 91 DOT 1000316172141 DOT 5735H-100000 AT is> <38D11897 DOT 2ED0 AT gmx DOT net> <Pine DOT SUN DOT 3 DOT 91 DOT 1000319103934 DOT 13691A-100000 AT is> <38D4BCD3 DOT 767ACF49 AT gmx DOT net> <Pine DOT SUN DOT 3 DOT 91 DOT 1000319161058 DOT 15795B-100000 AT is> <38D508CC DOT 5F3EA970 AT gmx DOT net> <Pine DOT SUN DOT 3 DOT 91 DOT 1000320114850 DOT 24837F-100000 AT is> <fm1ddsc2vpue4j23lroq83rhghn628a26t AT 4ax DOT com> <38D6A294 DOT 670F7954 AT bigfoot DOT com> <38D72717 DOT BF47421D AT is DOT elta DOT co DOT il>
NNTP-Posting-Host: modem-17.angainor.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: news6.svr.pol.co.uk 953673841 7614 62.136.110.145 (21 Mar 2000 21:24:01 GMT)
NNTP-Posting-Date: 21 Mar 2000 21:24:01 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.14 i586)
X-Accept-Language: de,fr
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello.

Eli Zaretskii wrote:
> > Well, here's the code (for DJGPP) I have in libsocket:
> 
> Many other DJGPP programs have the equivalent of this.  Emacs does it,
> and RHIDE does it as well (AFAIK).
> 
> >         r.x.ax = 0x160A;
> >         int86(0x2F, &r, &r);
> 
> Bad idea.  Calling Int 2Fh directly wedges the DOS box on some variants
> of Windows 95, in nested DJGPP programs.  Use __dpmi_int instead.  (It's
> in the DJGPP FAQ, btw.)

Thanks for pointing that out. I have actually seen it in the FAQ, but
clearly my brain was somewhere else at the time I wrote the above code.

> >                 if (_get_dos_version(1) == 0x532) {
> >                         win_version = WIN_NT;
> >                 }
> 
> And here lies the problem: this function indeed fails on NT and it also
> fails on W2K, in exactly the same manner.  Since _get_dos_version(1)
> also returns the same on both systems, we are back at the drawing board.
> 
> But I could tell you this in advance: those are the first things we
> tried to do to find the solution, and they didn't work.

OK, I was just answering Damian's question. I wasn't claiming to have a
solution for Win2k, just to have some code that answered Damian's
question.

I wonder if the Windows NT 5 beta or Win2k DDKs would have any info on
this?

Bye,

-- 
Richard Dawe
richdawe AT bigfoot DOT com ICQ 47595498 http://www.bigfoot.com/~richdawe/

- Raw text -


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