home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / prog_c / suplib.lzh / SUPLIB / SRC / MNTREQ.C < prev    next >
C/C++ Source or Header  |  1991-08-16  |  425b  |  26 lines

  1.  
  2. /*
  3.  *  MNTREQ.C
  4.  *
  5.  */
  6.  
  7. #include <local/typedefs.h>
  8.  
  9. void
  10. mountrequest(bool)
  11. int bool;
  12. {
  13.     static APTR original_pr_WindowPtr = NULL;
  14.     register PROC *proc;
  15.  
  16.     proc = (PROC *)FindTask(0);
  17.     if (!bool && proc->pr_WindowPtr != (APTR)-1) {
  18.     original_pr_WindowPtr = proc->pr_WindowPtr;
  19.     proc->pr_WindowPtr = (APTR)-1;
  20.     }
  21.     if (bool && proc->pr_WindowPtr == (APTR)-1)
  22.     proc->pr_WindowPtr = original_pr_WindowPtr;
  23. }
  24.  
  25.  
  26.