Article View: comp.sys.amiga.tech
Article #14220Intercepting DOS Write()
From: Ross MacGregor
Date: Wed, 14 Mar 1990 21:22
Date: Wed, 14 Mar 1990 21:22
29 lines
1743 bytes
1743 bytes
Hello,
Im looking for a way to have a process informed of a write to a floppy
disk. I've come up with two ideas so far, what do you think?
I could:
A) Patch the DOS Global Vector jump table. Basically SetPatching the DOS
library. I could patch Write() to inform me of a write to floppy.
Anybody still have the articles posted here not long ago on SetPatching
DOS library?
Of course this is would not be a very good solution since this may not
work with future OS revisions.
B) With DeviceProc() I could find each DOS device handler process.
Then I could get the task stucture for each process.
Now with the tc_Launch entry of the task structure, could I
place a funtion there that will inform a process of mine via a signal
or message that the device handler was passed a write request?
Tc_Launch is a funtion pointer that gets envoked when the task is
started up (placed in the run state).
Has anybody used this tc_launch thing?
Is there another way?
--
Ross MacGregor | " Elvis Lives - I
E-mail: 850031m@AcadiaU.CA | heard him on the
UUCP: {uunet|watmath|utai}!cs.dal.ca!aucs!850031m | radio yesterday"
Technical Details
Message-ID:
<1990Mar14.212215.12450@aucs.uucp>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!brutus.cs.uiuc.edu!uakari.primate.wisc.edu!aplcen!uunet!cs.dal.ca!aucs!850031mShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!brutus.cs.uiuc.edu!uakari.primate.wisc.edu!aplcen!uunet!cs.dal.ca!aucs!850031m From: 850031m@aucs.uucp (Ross MacGregor) Newsgroups: comp.sys.amiga.tech Subject: Intercepting DOS Write() Message-ID: <1990Mar14.212215.12450@aucs.uucp> Date: 14 Mar 90 21:22:15 GMT Reply-To: 850031m@aucs.UUCP (Ross MacGregor) Distribution: na Organization: School of Computer Science, Acadia Univ., Nova Scotia Lines: 29