home *** CD-ROM | disk | FTP | other *** search
- /*
- * MNTREQ.C
- *
- * (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"
-
- Prototype void mountrequest (int);
-
- void
- mountrequest (int bool)
- {
- static APTR
- original_pr_WindowPtr = NULL;
- register struct Process
- *proc;
-
- proc = (struct Process *) FindTask (NULL);
- 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;
-
- return;
- }
-