Dec 132017
 
Turbo Pascal source for program that lists file handles held by all programs in memory, using undocumented DOS calls. From TurboPower Software.
File MAPFILES.ZIP from The Programmer’s Corner in
Category Pascal Source Code
Turbo Pascal source for program that lists file handles held by all programs in memory, using undocumented DOS calls. From TurboPower Software.
File Name File Size Zip Size Zip Type
MAPFILES.DOC 1439 790 deflated
MAPFILES.PAS 2489 946 deflated
UNDOCDOS.PAS 6229 1993 deflated

Download File MAPFILES.ZIP Here

Contents of the MAPFILES.DOC file


MAPFILES - Utility to show open files by all active processes in memory
Version 1.0
2/9/91

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.

RSS


 December 13, 2017  Add comments

Leave a Reply