Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!cbmvax!higgin From: higgin@cbmvax.UUCP Newsgroups: comp.sys.amiga Subject: Re: Assigned names and system requesters Message-ID: <1358@cbmvax.cbmvax.cbm.UUCP> Date: Fri, 6-Feb-87 14:43:04 EST Article-I.D.: cbmvax.1358 Posted: Fri Feb 6 14:43:04 1987 Date-Received: Sat, 7-Feb-87 20:22:34 EST References: <108@batcomputer.tn.cornell.edu> Reply-To: higgin@cbmvax.UUCP (Paul Higginbottom SALES) Organization: Commodore Technology, West Chester, PA Lines: 44 Keywords: ASSIGN In article <108@batcomputer.tn.cornell.edu> hsgj@batcomputer.tn.cornell.edu (Dan Green) writes: $[] $ Is there any way to turn off the system requester that is $displayed when one attempts to access a 'disk' that is not mounted? Yes - set the pr_WindowPtr in the Process structure associated with the program to -1 (I think that's the value). Then AmigaDOS doesn't know where to stick requesters and so just returns error codes (probably via IoErr()). E.g: ToggleRequesters(Flag) int Flag; { extern struct Task *FindTask(); static APTR WindowPtr; struct Process *Me; Me = (struct Process *)FindTask(NULL); if (Flag) { Me->pr_WindowPtr = WindowPtr; } else { WindowPtr = Me->pr_WindowPtr; Me->pr_WindowPtr = -1; } } Note: if you call the function with 1 first you will get in trouble. $-- Dan Green $ $-- $ARPA: hsgj%vax2.ccs.cornell.edu@cu-arpa.cs.cornell.edu $UUCP: ihnp4!cornell!batcomputer!hsgj BITNET: hsgj@cornella Paul Higginbottom Disclaimer: I work for Commodore, but my opinions and certainly the above hack are mine only.