[comp.windows.ms.programmer] running dos programs in a window

dimitrov@lab.ultra.nyu.edu (Isaac Dimitrovsky) (06/24/91)

[]
I have a couple of questions about running dos programs in a window
under windows 3.0, and how they interact with other windows programs.
I understand that a "well behaved" dos program (i.e. one that only
uses interrupts for screen and keyboard i/o) can be run in a window
on the screen. My questions are about how this dos program will
interact with other windows programs that may also be open
at the same time:
1) While the dos program is running, does windows timeslice in
any way to the other windows programs that are open?
2) Is there any way for the dos program to give up the processor
voluntarily, similar to what may happen when a windows process calls
GetMessage or PeekMessage? Does this happen automatically when the
dos program reads the keyboard?
3) What kind of memory does the dos program have available to it?
Does windows give it a 640K space of its own within which it can
do dos-style heap allocates and frees?

Thanks for any help,

Isaac Dimitrovsky (dimitrov@lab.ultra.nyu.edu)