home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * MNTREQ.C
- *
- * $Header: Beta:src/uucp/src/lib/RCS/mntreq.c,v 1.1 90/02/02 12:08:27 dillon Exp Locker: dillon $
- *
- * (C) Copyright 1989-1990 by Matthew Dillon, All Rights Reserved.
- */
-
- #include <exec/types.h>
- #include <libraries/dos.h>
- #include <libraries/dosextens.h>
- #include <stdio.h>
- #include "config.h"
-
- typedef struct Process PROC;
-
- Prototype void mountrequest(int);
-
- void
- mountrequest(bool)
- int bool;
- {
- static APTR original_pr_WindowPtr = NULL;
- register PROC *proc;
-
- proc = (PROC *)FindTask(0);
- if (!bool && proc->pr_WindowPtr != (APTR)-1) {
- original_pr_WindowPtr = proc->pr_WindowPtr;
- proc->pr_WindowPtr = (APTR)-1;
- }
- if (bool && proc->pr_WindowPtr == (APTR)-1)
- proc->pr_WindowPtr = original_pr_WindowPtr;
- }
-
-