Mail Archives: djgpp/1999/12/06/14:20:42
On Mon, 6 Dec 1999, Gareth Williams wrote:
> 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.
If the real-mode procedure accepts arguments, then yes, you should use 
__dpmi_simulate_real_mode_procedure_retf_stack.  Warning: this function 
has a known bug (corrected in v2.03), but it is usually harmless, so 
unless you have trouble, you can safely forget about it.
> 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.)
I'm not sure I understand all the details.  Why don't you use the 
transfer buffer?
Also, make sure the pointer you pass on the stack looks to the real-mode 
procedure as a real-mode far pointer (i.e., two 16-bit words, and in the 
right order).
- Raw text -