www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/08/17/11:24:04

Date: Wed, 17 Aug 94 09:10:12 -0400
From: dj AT ctron DOT com (DJ Delorie)
To: p DOT waltenberg AT irl DOT cri DOT nz
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Access to the TEXT video buffer UNDER WINDOWS

> 1) Is there video buffer that I can access directly under Windows
> (obviously it's not the screen, but I remember DesqView supported
> a method of getting the virtual window address).

You can use _go32_conventional_mem_selector() and <sys/farptr.h> to
access the video memory in a portable way.

ScreenPrimary[] doesn't work in DPMI mode.

> 2) How is it done

Treat dos memory as a "far" segment and use farptr.

> 3) Is there a  'nice' way of determining that I AM running
> under windows.

check _go32_info_block.run_mode in <go32.h>


- Raw text -


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