Date: Sun, 23 Aug 1998 16:29:37 +0300 (IDT) From: Eli Zaretskii To: JP 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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?