Message-ID: <8D53104ECD0CD211AF4000A0C9D60AE35C8ABB@probe-2.acclaim-euro.net> From: Shawn Hargreaves 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) Content-Type: text/plain 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 running. 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.