From: "A. Sinan Unur" 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 int windows_version(void) { _go32_dpmi_registers regs; memset(®s, 0, sizeof(regs)); regs.x.ax = 0x1600; _go32_dpmi_simulate_int(0x2F, ®s); 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. *******************************************************************