delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/23/09:29:50

Date: Sun, 23 Aug 1998 16:29:37 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: JP <jpdelprat AT teaser DOT fr>
cc: djgpp AT delorie DOT com
Subject: Re: How to determine the physical address from a DPMI descriptor
In-Reply-To: <35d9d505.4345933@news.teaser.fr>
Message-ID: <Pine.SUN.3.91.980823162729.1451D-100000@is>
MIME-Version: 1.0

On Tue, 18 Aug 1998, JP wrote:

> My need is to create and lock a 2Mo continuous buffer (under Windows
> 95), and determine its physical address to give it to a video capture card.

I think section 18.7 of the FAQ should get you started.

> With DPMI functions (under Windows 95), I allocate my buffer then 
> lock it, but despite the call to dpmi_lock_linear_region, the buffer
> is still mixed and partially swapped out.

Did you remember to make your segment to have a size that's a multiple of 
4KB?

- Raw text -


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