Mail Archives: djgpp/2000/12/02/03:30:06
> From: Mark <mark1smi AT almaden DOT ibm DOT com>
> Newsgroups: comp.os.msdos.djgpp
> Date: Fri, 01 Dec 2000 13:43:35 -0800
>
> Even if you don't understand this first paragraph, you still may be able
> to help.
IMHO, you explained too little of the subject matter. Please consider
expaining more, as people here do not generally mess with VxD's and
the Windows kernel.
> So, I am trying to write such a program with DPMI which will basically
> just do gethostbyname for my kernel vxd. However, I have 2 questions.
> First, how do I call into my DOS Box program from the kernel?
The kernel is supposed to know everything about the selectors and the
memory mapping used by the DOS Box, right? If so, a protected-mode
far call using the DOS Box's CS selector should do the trick, I think.
> And
> second, if this is an asynchronous call, how do I call into my kernel
> vxd from my DOS Box program?
One possibility is to provide a real-mode address which the DOS Box
could use as a far call, via the appropriate DPMI function.
Another possibility is to provide a function of some real-mode
interrupt (e.g., 2Fh) which the DOS Box could call.
- Raw text -