Mail Archives: djgpp/2000/03/23/18:46:56
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 -