delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/23/18:46:56

From: Richard Dawe <richdawe AT bigfoot DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Is DOS dead?
Date: Thu, 23 Mar 2000 22:41:28 +0000
Organization: Customer of Planet Online
Lines: 37
Message-ID: <38DA9D98.55D90D49@bigfoot.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000322104613 DOT 17945U AT is>
NNTP-Posting-Host: modem-132.arizona.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: newsg1.svr.pol.co.uk 953851466 4800 62.137.54.132 (23 Mar 2000 22:44:26 GMT)
NNTP-Posting-Date: 23 Mar 2000 22:44:26 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:
> 
> On Tue, 21 Mar 2000, Richard Dawe wrote:
> 
> > I wonder if the Windows NT 5 beta or Win2k DDKs would have any info on
> > this?
> 
> I don't have access to these resources.  If someone can find the
> answer, please post it here.

I just had a look at the Windows NT 5 beta 2 DDK (I don't have the later
DDKs). There doesn't appear to be anything about detecting Windows NT from
a DOS box. However, there may be a solution in the form of a Virtual DOS
Device. This is a DLL that can be loaded and called from a DOS program - I
guess these are a loose equivalent of VxDs.

It should be possible to write a simple VDD to detect and return the
Windows NT / 2000 version number to a DOS program. The DLLs can be written
with any Windows tool, i.e. it's doesn't require Microsoft's proprietary
tools like with writing VxDs (well, I've heard you can use Borland's C
compiler too to generate VxDs). You can even use Delphi.

In fact, someone has written a VDD to emulate the interface of WSOCK.VXD,
the low-level device driver used by libsocket for Winsock 1 support. See:

http://www.phekda.freeserve.co.uk/richdawe/dossock/wsockvdd/

I was hoping to find a simple "call INT 0xnn, subfunction 0xn'n'", but it
looks like a VDD is the best solution.

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