[comp.os.msdos.programmer] DOS Environment questions. Guru's beware these are hard.

games@maven.u.washington.edu (12/05/90)

I know where the current environment IS in memory, as well as where to
find the parent PSP (which I believe is always DOS's), but where does DOS store
the LENGTH of the environment.  

If you want to for instance add your own variable, you have to make sure that
you do not overwrite memory past what has been allocated in the environment.

The other problem that I seem to have is that after the environment, there is
a string containing the current executable.  In all environments except the
MASTER environment that is.  the question is, HOW do you tell when you are
in the MASTER environment block?  what if there are 2 copies of dos running,
then I can not seem to get to the master, as once you follow the parent
PSP back to the 2nd copy of DOS, it's parent seems to point to itself.

AARGH...  Where is the "DOS Internals and Data Structures Handbook."???
(Aside from being published in other galexies.., are there any book that have
this level of info on DOS...)

So, if you have any answers to the preceeding questions, please call or
e-mail me.


		John Stevens-Schlick
		7720 35'th ave S.W.
		Seattle, Wa. 98126

		(206) 935-4384 (hm)
		(206) 296-4076 (wrk)

		Games@maven.u.washington.edu or
		games@maven.acs.washington.edu or better yet
		whatever the domain is on the header this week.


	Thanx in advance.