Message-ID: <000a01c0d8be$84a58600$f8089d3e@iron> From: "Thomas Schachtner" To: "Eli Zaretskii" Cc: References: <9cp464$ju8$1 AT news2 DOT dtag DOT de> <9cp8nj$ap6$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <9cu780$5rr$1 AT news2 DOT dtag DOT de> <3028-Fri04May2001183719+0300-eliz AT is DOT elta DOT co DOT il> <000c01c0d56e$77a9a7e0$cb099d3e AT iron> <9003-Sat05May2001175837+0300-eliz AT is DOT elta DOT co DOT il> <001901c0d577$954622c0$cb099d3e AT iron> <1659-Sat05May2001211357+0300-eliz AT is DOT elta DOT co DOT il> <9d8src$9kc$1 AT news2 DOT dtag DOT de> <5137-Tue08May2001211326+0300-eliz AT is DOT elta DOT co DOT il> <9dbjel$35j$2 AT news2 DOT dtag DOT de> <5567-Wed09May2001200344+0300-eliz AT is DOT elta DOT co DOT il> Subject: Re: read a specific memory address Date: Wed, 9 May 2001 21:30:32 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Reply-To: djgpp AT delorie DOT com > > I checked the return values, but none of them failed... > > After modifying the program (making it smaller) the first DMI function > > fails - but only with Windows 2000.... > > What is that first function--is that __dpmi_physical_address_mapping? yes, it fails, but only on Windows 2000, and only after changing my program; in the original configuration it didn't fail.... > If that fails, you cannot continue. What can I do against this failure? > What are the values of dmi.start and dmi.length printed by this > snippet from your program: > > > mi.address = dmi.start; > > mi.size = dmi.length; > > > > printf ("mi.address = %08X\n", dmi.start); > > printf ("mi.size = %08X\n", dmi.length); > > > > if (__dpmi_physical_address_mapping (&mi) == -1) Sorry, I am already at home and do not know the values by heart, but dmi.start is 0x0BFF0000 and dmi.length is something like 0x0220 or 0x0520 ... And: Why does this function fail with Windows 2000 and does NOT fail with Windows Me?