home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 440.lha / LockDevice / PreInclude.c < prev   
C/C++ Source or Header  |  1990-11-13  |  962b  |  61 lines

  1. #define __NO_PRAGMAS 1
  2.  
  3. #include <libraries/filehandler.h>
  4. #include <libraries/dosextens.h>
  5. #include <devices/trackdisk.h>
  6. #include <libraries/arpbase.h>
  7. #include <hardware/custom.h>
  8. #include <exec/execbase.h>
  9. #include <exec/memory.h>
  10. #include <functions.h>
  11.  
  12. struct Patch
  13. {
  14.     struct Patch    *NextPatch;
  15.  
  16.     struct IOExtTD    *Request;
  17.     struct Device    *Device;
  18.  
  19.     VOID        *OldBeginIO;
  20.  
  21.     char         UnitName[32];
  22.     UBYTE         PassWord[32];
  23.  
  24.     char         DriverName[32];
  25. };
  26.  
  27. struct LockSeg
  28. {
  29.     struct MsgPort     SignalPort;
  30.  
  31.     struct Task    *Father;
  32.     struct Task    *Child;
  33.     ULONG         HandShake;
  34.  
  35.     BPTR         HandlerSegment;
  36.     LONG         SegSize;
  37.  
  38.     struct Patch    *RootPatch;
  39. };
  40.  
  41. struct LockMsg
  42. {
  43.     struct Message     ExecMessage;
  44.  
  45.     char        *DeviceName;
  46.     char        *PassWord;
  47.  
  48.     BYTE         Success;
  49. };
  50.  
  51. extern struct ExecBase        *SysBase;
  52. extern struct DosLibrary    *DOSBase;
  53.  
  54. #define PORTNAME    "LockDevice"
  55.  
  56. #define SIG_SHAKE    SIGBREAKF_CTRL_C
  57. #define SIG_QUIT    SIGBREAKF_CTRL_D
  58. #define SIG_PORT    SIGBREAKF_CTRL_E
  59.  
  60. #define REVISION    1
  61.