home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / fish / telecom / uucp_442 / src / lib / mntreq.c < prev    next >
C/C++ Source or Header  |  1990-04-04  |  756b  |  36 lines

  1.  
  2. /*
  3.  *  MNTREQ.C
  4.  *
  5.  *  $Header: Beta:src/uucp/src/lib/RCS/mntreq.c,v 1.1 90/02/02 12:08:27 dillon Exp Locker: dillon $
  6.  *
  7.  *  (C) Copyright 1989-1990 by Matthew Dillon,  All Rights Reserved.
  8.  */
  9.  
  10. #include <exec/types.h>
  11. #include <libraries/dos.h>
  12. #include <libraries/dosextens.h>
  13. #include <stdio.h>
  14. #include "config.h"
  15.  
  16. typedef struct Process    PROC;
  17.  
  18. Prototype void mountrequest(int);
  19.  
  20. void
  21. mountrequest(bool)
  22. int bool;
  23. {
  24.     static APTR original_pr_WindowPtr = NULL;
  25.     register PROC *proc;
  26.  
  27.     proc = (PROC *)FindTask(0);
  28.     if (!bool && proc->pr_WindowPtr != (APTR)-1) {
  29.     original_pr_WindowPtr = proc->pr_WindowPtr;
  30.     proc->pr_WindowPtr = (APTR)-1;
  31.     }
  32.     if (bool && proc->pr_WindowPtr == (APTR)-1)
  33.     proc->pr_WindowPtr = original_pr_WindowPtr;
  34. }
  35.  
  36.