home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!portal!cup.portal.com!Tony-Preston
- From: Tony-Preston@cup.portal.com (ANTHONY FRANCIS PRESTON)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Getting rid of requesters
- Message-ID: <64215@cup.portal.com>
- Date: Tue, 18 Aug 92 07:20:30 PDT
- Organization: The Portal System (TM)
- References: <1992Aug15.220923.9546@CS.ORST.EDU>
- Lines: 17
-
- Try adding the code:
-
- long oldval;
- struct Process *me;
-
- me = (struct Process *)FindTask(0);
- oldval = me->pr_WindowPtr; /* save old value */
-
- me->pr_WindowPtr = -1; /* disable all requestors */
-
- ....[do whatever you want...]...
-
- me->pr_WindowPtr = oldval; /* put the old value back */
-
- This disables the requestor and returns error/cancel. For example if
- you write to a disk and the disk is full, you will get an error back
- on the write. You will not get the system requestor.
-