Mail Archives: djgpp/1999/03/01/13:22:45

Message-ID: <>
From: Shawn Hargreaves <ShawnH AT Probe DOT co DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: Detecting win95: the hard way
Date: Mon, 1 Mar 1999 17:50:28 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.0.1460.8)
Reply-To: djgpp AT delorie DOT com

>> I need a way to detect when a djgpp program (Allegro) is being run
>> under win95.
> In my machine the 'winbootdir' (lowercase!) variable remains visible, 

But unfortunately, "winbootdir" still exists even when you run in
clean DOS mode, ie. when win95 isn't present at all. It is set by
any DOS-7 based system, regardless of whether the GUI stuff is 

But I think I've found a solution: the VDS interrupt functions can
return a vendor ID code, which seems to do what I need. Hopefully this
will be enough to solve the problem, and I won't later find out that
any other platforms were stupid enough to use the same code as win95!

	Shawn Hargreaves.

- Raw text -

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