X-Apparently-From: From: Prashant TR To: "Gareth Williams" Subject: Re: Setting a variable's selector? - Clarification - I hope. Date: Mon, 6 Dec 1999 22:19:30 +0500 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain Cc: Eli Zaretskii , DJGPP Mailing list References: <19991206154415 DOT 3773 DOT qmail AT hotmail DOT com> In-Reply-To: <19991206154415.3773.qmail@hotmail.com> MIME-Version: 1.0 Message-Id: <99120622224702.00544@localhost.localdomain> Content-Transfer-Encoding: 8bit Reply-To: djgpp AT delorie DOT com On Mon, 06 Dec 1999, Gareth Williams wrote: > I had come to the same conclusion that the 16-bit real mode interface would > be easier. But I have a couple questions regarding the 16-bit real mode... > > I am guessing (going to try) the > __dpmi_simulate_real_mode_procedure_retf_stack function is the only way to > get a stack to my real mode function, and again to get it back. Then can I > use _go32_dpmi_allocate_dos_memory to allocate the array needed for the > pnpbios to return data in? (I pass a pointer to the structure/array it > returns the data there.) The pointer you pass can be the address of the transfer buffer. Why would you want to go for the DOS memory allocation which can be a little cumbersome? And after the call, you can just copy the info. in the transfer buffer and parse it, right? Prashant --------------------------------------------------- One pound of learning requires ten pounds of common sense to apply it. __________________________________________________ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one place. Yahoo! Shopping: http://shopping.yahoo.com