www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/09/17:50:59

From: bianchi AT magna DOT ing DOT unipi DOT it (Federico Bianchi)
Newsgroups: comp.os.msdos.djgpp
Subject: Access to video memory under Windows NT
Date: 4 Sep 1997 17:25:20 GMT
Organization: Universita' di Pisa
Lines: 22
Message-ID: <slrn60tsqm.ja.bianchi@magna.ing.unipi.it>
NNTP-Posting-Host: magna.ing.unipi.it
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hello. I have been asked to have a DPMI GCC program accessing the screen memory
'DOS-way'. Unfortunately, the virtual address which may be used under both
plain DOS and Windows 95 appears not to work properly under Windows NT.

Does anyone know whether there is a _documented_ and clean way to get a
linear pointer to the frame buffer in VGA modes 03h (80x25, text) and 13h
(320x200, 256 colours)?

Thanks in advance for your help and kindness.

				Federico Bianchi
				bianchi AT magna DOT ing DOT unipi DOT it

PS: I _know_ I can map the 0A000h real mode segment to a selector and the
DPMI 1.0 specs, so please don't point me to them. I need a thing which can
run under DPMI 0.9 and completely independent from the segment registers (i.e.,
flat mode). I also think myself this is not a proper way to handle the console,
but I was ordered to do it just that way.

PPS: I will be away for some days, so it would be very nice of you kind souls
who answer to e-mail me a copy of your articles. Thanks again.

ces one)

I'm not sure what you mean by "loader." You mean, such as the dos4gw.exe used
by Watcom? DJGPP-compiled programs do not require a loader or extender per se;
they employ DPMI, which can be provided by many different things, including
QDPMI, Windows, or the freeware DPMI server distributed with DJGPP, CWSDPMI.

I highly suggest you download the FAQ, as well as the README.1ST file that
can be found in the same directory, and peruse them both carefully.

-- 
[- 				 firewind	                            -]
[-   email: firewind AT metroid DOT dyn DOT ml DOT org (home), firewind AT aurdev DOT com (work)  -]
[- 	    "You're just jealous because the voices talk to -me-."          -]

- Raw text -


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