850031m@aucs.uucp (Ross MacGregor) (03/15/90)
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"