home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
dskutl
/
protect.arc
/
PROTECT.DOC
< prev
Wrap
Text File
|
1988-05-11
|
1KB
|
30 lines
Summary: PROTECT.COM simulates a write-protect tab by allowing read access
but not write access to the hard-disk (floppy drives A:, and B: are
not affected).
This is a "User-to-User" Hard-Disk protection program from the January issue
of PC Magazine. As submitted, the program only checks for AH = 03h (Write
Sector from memory) and AH = 05h (Format Track) of the BIOS interrupt service
13h. I have added an additional check for AH = 0Bh (Write Long).
The checks are by no means a complete set of all those ways I am aware of
writing to the hard-disk.
This program is a replacement for the INT 13h vector, and toggles on and off
each time the program is invoked. The program functions as a "write-protect"
tab for a hard-disk. The program monitors the requests for disk I/O. If a
"write" operation is requested, and the selected device is "C:" (or greater),
the write protection error is returned to DOS. Any other disk I/O request
proceeds as before this program was installed.
The program will have to be modified if you intend to use this when you also
use devices that are not partitions of the hard-disk and have identifiers
greater than "C:". Add:
CMP DL, <dev. no. [00h = A:, 01h = B:, etc.]>H
JZ CONTINUE
in the code section labelled "CHECKSTAT:" to skip disk I/O checking for the
other devices.
--- cut here --- UUencoded PKarc -oct file ---