home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 4 / CDPD_IV.bin / networking / uucp / amigauucpsrc / lib / mntreq.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-29  |  653 b   |  34 lines

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