home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / msdos / programm / 8632 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.3 KB

  1. Path: sparky!uunet!destroyer!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!indyvax.iupui.edu!imhw400
  2. From: imhw400@indyvax.iupui.edu
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Where is the size of the environment block?
  5. Message-ID: <1992Aug19.135810.156@indyvax.iupui.edu>
  6. Date: 19 Aug 92 13:58:10 -0500
  7. Lines: 17
  8.  
  9. WARNING:  newbie-type question follows.  I've been writing mainframe assembly
  10. language for years, but this is my very first program for MSDOS or the 80x86.
  11.  
  12. I'm writing a gadget that needs to create or update an environment variable. 
  13. I'm writing in Arrowsoft Assembler (the only real-address-mode translator I've
  14. found for free :-) and have no libraries, so I have to code this myself.  I can
  15. find the parent process' environment block with no problem, and (I think) I
  16. understand the format thereof except for one thing:  how do I know the size of
  17. the environment block that I've located, so I don't run off the end and damage
  18. other structures?
  19.  
  20. So that I don't wind up bugging you-all endlessly, I'll ask another question of
  21. those who answer:  where did you learn the answer?
  22. -- 
  23. Mark H. Wood, Lead Analyst/Programmer    +1 317 274 0749   [@disclaimer@]
  24. Internet:  IMHW400@INDYVAX.IUPUI.EDU     BITNET:  IMHW400@INDYVAX
  25. Celebrate freedom:  read a banned newsgroup.
  26.