Contents of the MAPFILES.DOC file
MAPFILES - Utility to show open files by all active processes in memory
Richard S. Sadowsky
Boulder Creek, California
Compuserve ID: 74017,1670
This simple file steps through the MCB chain looking for program segment
prefixes. For each one it finds, it will display the names of all files open.
This program has been tested with DOS 3 and up. Complete source code is
contained in MAPFILES.PAS and UNDOCDOS.PAS.
Version 1.0 of this program has a known defficiency in the way it gets the
program name from the PSP. If the environment block has been released, this
program will still attempt to extract the name from that memory. It may
therefore display the name of another program that has reclaimed the vacated
environment block space. There are several ways around this problem. One or
both will be implemented in the next version if there is interest.
Please leave comments regarding this program and the provided source code on
Compuserve in the PCVENB forum section 6. My Compuserve ID is 74017,1670.
Notes on the UNDOCDOS unit:
The book "Undocumented DOS" published by Addison Wesley Publishing Company
(ISBN 0-201-57064-5) was an inspiration to me. I didn't get far into it before
I started trying some of the techniques it documents. The UNDOCDOS unit as
provided here samples a few file related routines for Turbo Pascal. This book
is easily worth its $40+ price tag.