Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU.UUCP Newsgroups: comp.sys.amiga Subject: Re: Assigned names and system requesters Message-ID: <8702062026.AA15198@cory.Berkeley.EDU> Date: Fri, 6-Feb-87 15:26:32 EST Article-I.D.: cory.8702062026.AA15198 Posted: Fri Feb 6 15:26:32 1987 Date-Received: Sun, 8-Feb-87 01:43:54 EST Sender: daemon@ucbvax.BERKELEY.EDU Organization: University of California at Berkeley Lines: 38 >[] > Is there any way to turn off the system requester that is >displayed when one attempts to access a 'disk' that is not mounted? >I have a helpfile displayer. By default, the help files it should >display are located in the current directory. However, I thought it >would be 'user friendly' if the user could ASSIGN HELP: my/help/dir >so that he/she could locate the help files anywhere. Unfortunately, >when I test to see if HELP: has been defined, if it *hasn't* been >defined, an 'Insert HELP disk' system requester appears. This >is not good... Very easily. Simply set the pr_WindowPtr in your Process structure to (APTR)-1. This causes DOS to return an error code to you rather than put up a requester. Be sure to restore the pr_WindowPtr to it's original state before exiting. (If you have MY.LIB, this would corrospond to the mountrequest(bool) call.). Here is a code fragment: -------------------------- extern struct Process *FindTask(); struct Process *proc; APTR save_window_ptr; proc = FindTask(0L); save_window_ptr = proc->pr_WindowPtr; proc->pr_WindowPtr = -1; ( do stuff here ) proc->pr_WindowPtr = save_window_ptr; -------------------------- Note: By this method, if HELP: were assigned to a disk which is not currently mounted, it would be the same as if HELP: were not assigned at all. -Matt