delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/15/22:32:45

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Console mode in WIN95
Date: Fri, 13 Jun 1997 09:53:46 -0400
Organization: Cornell University http://www.cornell.edu
Lines: 36
Sender: asu1 AT cornell DOT edu (Verified)
Message-ID: <33A150EA.4535@cornell.edu>
References: <33A13A42 DOT 6697 AT jet DOT es>
Reply-To: asu1 AT cornell DOT edu
NNTP-Posting-Host: cu-dialup-0050.cit.cornell.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Juanjo Erauskin wrote:
> 
> How I detect in Win95, if I am in full screen console or window 
> console

i do not know how to detect console vs full-screen, but you can detect
the windows version by using the following function:

#include <dpmi.h>

int windows_version(void)
{
  _go32_dpmi_registers regs;

  memset(&regs, 0, sizeof(regs));
  regs.x.ax = 0x1600;

  _go32_dpmi_simulate_int(0x2F, &regs);

  return regs.h.al;
}

it will return 4 for win 95, 3 for win 3.x. for more details, check out
ralph brown's interrupt list.

-- 
   Sinan
 
*******************************************************************
 A. Sinan Unur                                WWWWWW
                                              |--O+O
 mailto:sinan DOT unur AT cornell DOT edu                C   ^ 
 http://www.people.cornell.edu/pages/asu1/     \  ~/ 

Unsolicited e-mail is _not_ welcome, and will be billed for.
*******************************************************************

- Raw text -


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