home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
336.lha
/
KillReq
/
killreq.doc
< prev
next >
Wrap
Text File
|
1990-01-09
|
3KB
|
67 lines
KILLREQ(1) AMIGA Programmer's Manual KILLREQ(1)
1mNAME
0mkillreq - disables Intuition's AutoRequest() function
1mSYNOPSIS
0mkillreq [disable | enable]
1mDESCRIPTION
0mKillreq is a freely distributable utility which stops
Intuition from displaying AutoRequesters. Instead, any
program which tries to display an AutoRequester will be
fooled into thinking the user selected the CANCEL option.
In particular, AmigaDOS requesters will not be displayed.
These include "Please insert volume xyzzy:", "Disk Full" and
"Volume xyzzy: has a Read/Write error".
Similar programs (such as NoReq) already exist, but these
only affect requesters connected with a particular CLI
window. KillReq will disable requesters on a systemwide
basis. This is particularly useful if you use your Amiga
remotely a lot, since some programs (BBS-PC springs to mind)
can generate AutoRequesters even when they have been
disabled.
Invoking killreq with no parameters displays a brief usage
method. Otherwise, you should specify either `disable' or
`enable' (only the first letter is actually checked).
`disable' will stop Intuition from displaying AutoRequesters
and `enable' will allow AutoRequesters to be displayed
again.
1mOPERATION
0mKillreq tries to be as friendly to the operating system as
possible. It SetFunction()'s the AutoRequest() function in
Intuition's library to point to a stub routine which simply
returns FALSE. If another program tries to SetFunction()
AutoRequest(), killreq will still allow itself to be
disabled without pulling the rug out from under the second
program. It tries to guarantee that the system is in a
"safe" state at all times.
In fact, a program that does basically the same thing as
killreq could be written in around 50 bytes of machine-code
(or less), but since this is such a simple application of
SetFunction(), it seemed worth the extra code to do it
"properly" as an example for more sophisticated usages.
1mAUTHOR
0mEddy Carroll
EMAIL: ecarroll@vax1.tcd.ie
Copyright Eddy Carroll 1989 -1-