Mail Archives: djgpp/2000/03/21/20:14:12
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 -