home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / asmutil / prenv.zip / PRENV.MSG < prev   
Internet Message Format  |  1988-09-25  |  1KB

  1. From: cgs@umd5.umd.edu (Chris Sylvain)
  2. Newsgroups: comp.binaries.ibm.pc
  3. Subject: prenv, demonstrates how to read environment strings
  4. Date: 24 Sep 88 05:01:01 GMT
  5. Summary: prenv.arc, demonstrates how to read environment strings
  6. Approved: dhesi@bsu-cs.UUCP
  7.  
  8. PRENV demonstrates how to read this program's copy of the parent's
  9. environment created by COMMAND.COM ... For DOS Ver 3.x, the fully
  10. justified path name of this program will also be displayed.  The
  11. executable and the assembly source are supplied.
  12.  
  13. The environment consists of null-terminated ASCII strings (ASCIIZ),
  14. with the entire list terminated by another null.  A 2-byte entry at
  15. offset 2Ch in the program's program segment prefix (PSP) contains the
  16. segment of the copy of the environment.  The code commenting, wording
  17. of printing messages and some of the code itself have been changed in
  18. a number of places.
  19.  
  20. This is one of three programs, being posted consecutively to this
  21. newsgroup, that was written using MASM 5.0 by Hardin Brothers for the
  22. April 1988 issue of PC Resource magazine, (C) Copyright 1988 by IDG
  23. Communications/Peterborough, Inc.
  24.  
  25. Hardin Brothers is a freelance programmer and technical writer. Write
  26. to him at 280 N. Campus Ave., Upland, CA  91786. Enclose a self-
  27. addressed, stamped envelope for a reply.
  28.