ENHDOS Version 1.7 (ENHANCED DOS INTERFACE UNIT)

(C) Copyright 1994,95 by Andrew Eigus
Portions Copyright (c) 1992, Borland International, Inc.

ENHANCED DOS INTERFACE FOR BORLAND (TURBO) PASCAL VERSION 7.0x.
ABSOLUTELY FREEWARE. THE SOURCE CODE MAY BE DISTRIBUTED AROUND WITH NO
AUTHOR'S PERMISSION NECESSARY. THE SOURCE CODE CAN BE MODIFIED AS LONG
AS THE COPYRIGHTS REMAIN UNCHANGED. PERMISSION TO DISTRIBUTE AND TO USE
THIS SOURCE LIBRARY GRANTED TO EVERYONE.

DISCLAIMER: STANDARD DISCLAIMER FOLLOWS: AUTHOR TAKES NO RESPONSIBILITY
FOR ANY PROBLEMS THIS LIBRARY CAN CAUSE EITHER TO YOUR HARDWARE, OR
TO YOUR SOFTWARE IN ANY TERMS! IN NO WAY I GUARANTEE BUG-FREE RELEASE,
NOR I DO GUARANTEE YOUR SATISFACTION IN USING ENHDOS.

.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .

INTRODUCTION

Idea to make EnhDOS interface unit was to combine all three DOS/DPMI/Windows
platforms to use one source library. I have improved some routines to work
faster, implemented a flexible error-control mechanism that will allow you
to avoid boring error-checks after each DOS command being executed. I provided
some simple examples that show you how the programming with EnhDOS can be done.
I turned most of procedures into functions since the result values can be
sometimes very helpful. I added lot of routines that were not implemented in
Borland Dos/WinDos units and which, however, are listed in MS-DOS manuals.
I wrote almost all code in built-in assembler (BASM) in order to get fast,
short and efficient library. I combined Pascal and PChar-type strings so you
won't probably mind anymore why WinDos uses PChars, and why Dos uses
Pascal-style strings. I made my code fully commented so beginners might learn
some Pascal/BASM programming magic easily. I optimised this library for
D.J. Murdoch's ScanHelp utility with which you may convert the source of EnhDOS
to fully-documented Borland .TPH-format help file. And the last, (maybe i
forgot something) - EnhDOS is absolutely FREE of charge! :)


KNOWN ADVANTAGES/DISADVANTAGES

Advantages:

	- Dos/WinDos are in one EnhDOS unit. This lets the user to use
	  the same routines in both DOS/Windows targets as well as to mix
	  PChar and Pascal-style strings. Routines oriented for using
	  Pascal-type strings are ended with the '_' character.

	- The error-handler lets you to check all DOS runtime errors in
	  a separate function which will be called once an error has
	  occured. Depending on a situation, you may retry the function
	  call, ignore it or report an error message based on information
	  about error code and calling-function code. If you do not wish
	  to use error-handler technique, you're still welcome to check
	  for an error code in the DOSResult status variable (note: 
	  not DosError).

	- DOS/Windows/DPMI compatible.


Disadvantages:

	- Exec, SwapVectors and Intr procedures still not implemented neither
	  for DOS, nor for DPMI/Windows platforms. I am sorry for the delay,
	  but i believe you'll get them soon.

	- GetDriveType function is removed and will not be anymore included
	  in EnhDOS. Instead, get DRVTYP*.ZIP which is public domain source
	  for type-detection of various drives.



SOME INFORMATION (PLEASE READ TILL THE END)

The latest release of EnhDOS is available for file request from
2:5100/33@fidonet.org or via terminal call to AndRew's BBS (+371-2-559777).
Also they should be found on x2ftp.oulu.fi FTP server as well as they could
be included in the SWAG archives. The following is contact information to
the author:

	Andrew Eigus (aka Mr. Byte)
	e-mail	  : mrbyte@dcbalt.vernet.lv
		    andrejs@ltu-po.swh.lv
		    aeigus@fgate.castle.riga.lv
	fidonet   : 2:5100/33

Although, EnhDOS is freeware, author will extremely appreciate any support
from EnhDOS users. A high-quality powerful EnhDOS library cost me much time
and energy and you would never really believe how many hours i spent to
implement, test and comment all the features that are currently available
for YOU. Available for FREE! So ANY donations will be very appreciated!
If you wish to contribute, here goes my snail-mail address:

	Andrew Eigus
	Vaidavas str. 13/51
	LV 1084	Riga
	L A T V I A



THANKS AND GREETINGS

Thanks and greetings go to my wife Nataly, my friend Alex Grischenko,
Vladimir Zakharichev, Bas van Gaalen, Alex Libenson and other.


Enjoy EnhDOS!
Mr. Byte