Path: utzoo!utgpu!water!watmath!clyde!rutgers!rochester!bbn!husc6!hao!noao!mcdsun!fnf From: fnf@mcdsun.UUCP (Fred Fish) Newsgroups: comp.sys.amiga Subject: Re: Telling AmigaDOS to be quiet for a bit Message-ID: <639@mcdsun.UUCP> Date: 12 Jan 88 15:53:04 GMT References: <952@rocky.STANFORD.EDU> Reply-To: fnf@mcdsun.UUCP (Fred Fish) Organization: Motorola Microcomputer Division Lines: 38 In article <952@rocky.STANFORD.EDU> rokicki@rocky.STANFORD.EDU (Tomas Rokicki) writes: > .... Is >there a way to tell AmigaDOS to ignore a particular drive for a while? >For instance, DiskCopy does this, with those cute little DF1:BUSY things. int DisableDevice (name) char *name; { auto LONG arg[1]; register int result = 0; register struct MsgPort *task; extern void *DeviceProc (); if((task = (struct MsgPort *) DeviceProc (name)) != NULL) { arg[0] = 1; result = sendpkt (task, ACTION_INHIBIT, arg, 1); } return (result); } int EnableDevice (name) char *name; { auto LONG arg[1]; register int result = 0; register struct MsgPort *task; extern void *DeviceProc (); if((task = (struct MsgPort *) DeviceProc (name)) != NULL) { arg[0] = 0; result = sendpkt (task, ACTION_INHIBIT, arg, 1); } return (result); } -- # Fred Fish hao!noao!mcdsun!fnf (602) 438-3614 # Motorola Computer Division, 2900 S. Diablo Way, Tempe, Az 85282 USA