home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 3
/
PDCD_3.iso
/
utilities
/
utilsd
/
dismounter
/
!Help
next >
Wrap
Text File
|
1995-03-07
|
4KB
|
116 lines
Instructions for Dismounter by Andrew Sellors (v0.05 Release 2)
*****************************************************************************
* NOTE: *
* Dismounter is FreeWare. *
* This means that you may freely copy and distribute it, provided that it *
* is complete with all original files, and that you do not sell it. *
* PD libraries may charge a nominal fee for the cost of duplication, *
* postage etc. *
* In no circumstances shall the author be liable for any damage, loss of *
* profits, time or data or any indirect or consequential loss rising out of *
* the use of this software or inability to use this software. *
*****************************************************************************
Contents:
---------
Aims
Compatibility
Operation
Technical Details
Contacting the author
********************************************************************************
Aims:
-----
The module "Dismounter" allows ADFS floppies to be dismounted by clicking with
the Adjust button over the drive icon on the iconbar.
********************************************************************************
Compatibility:
--------------
This program is for RISC OS 3 only.
It has been tested on both RISC OS 3.10 and RISC OS 3.50 and should work with
RISC OS 3.00 although I cannot guarantee it as it hasn't been tested with this
version of the OS.
********************************************************************************
Operation:
----------
Simply double click on the module or *Filer_Run it when the Desktop is running.
NOTE: The desktop must be running when program is loaded as it needs to find out
taskhandle of the ADFSFiler to work.
If you want to load in when the computer is turned on the put the *Filer_Run
command in your !Boot file, but this must be a "Desktop" file and not an "Obey"
file as the desktop must be running when the program is loaded.
Eg.
Filer_Run <Boot$Dir>.Modules.Dismounter
Where <Boot$Dir> points to a directory containing a Modules dir. with
Dismounter in it.
Note: This line works on RISC OS 3.1, thanks to all who emailed me with
their problems.
If you have a Risc PC then you can copy it into !Boot.Choices.Boot.Tasks. and
it will be loaded when the computer boots.
********************************************************************************
Technical Details:
------------------
The source for the module is included in the BASIC file "Source". It can be
assembled by double clicking on the "Assemble" file.
The module works by scanning all the names of all the tasks when started and
finding the taskhandle of the one named "ADFSFiler". (an error is generated
and the module quits if it is not found).
This taskhandle is then used to install a post Wimp_Poll filter on the
ADFSFiler.
The filter checks the return code from Wimp_Poll and if it is a mouse click
then it checks to see if it was with the Adjust button. If it was then the text
in the icon is checked to see if it is a floppy drive and which drive it is so
that it can be dismounted.
This program was originally going to be a wimp task so that it could catch the
ADFSFiler when it starts up and dies but I never got that far and I abandoned
it.
After transferring several large Replay files via DOS discs (which needed to be
dismounted after each one because they were all called "Untitled"), I realised
that even in this state, the program is very useful so that is why I am
releasing it now.
********************************************************************************
Contacting the author
--------------------
I, Andrew Sellors, can be contacted either at
57 Boundaries Road
Feltham
Middlesex
TW13 5DR
Or via Internet email at
k946949@king.ac.uk
Any feedback from users (bugs reports, requests for new features, praise,
money etc.) is gladly received.