home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 2 / goldfish_vol2_cd1.bin / files / util / blank / gblanker / source / defs.h < prev    next >
Text File  |  1994-10-17  |  2KB  |  89 lines

  1. /*
  2.  *    Copyright (c) 1994 Michael D. Bayne.
  3.  *    All rights reserved.
  4.  *
  5.  *    Please see the documentation accompanying the distribution for distribution
  6.  *  and disclaimer information.
  7.  */
  8.  
  9. /* Return values */
  10. #define FAILED   -1L
  11. #define QUIT      0L
  12. #define OK        1L
  13. #define UNBLANK   2L
  14. #define CLOSEWIN  3L
  15.  
  16. /* Cx message IDs */
  17. #define EVT_CX_POPUP 1L
  18. #define EVT_CX_BLANK 2L
  19.  
  20. /* Module prefs command IDs */
  21. #define STARTUP 1L
  22. #define IDCMP   2L
  23. #define KILL    3L
  24.  
  25. /* Blanker message IDs */
  26. #define BM_INITMSG     10
  27. #define BM_DOBLANK     11
  28. #define BM_DOPREFS     12
  29. #define BM_DOQUIT      13
  30. #define BM_UNBLANK     14
  31. #define BM_FAILED      15
  32. #define BM_DELAYEDQUIT 17
  33. #define BM_SENDBLANK   18
  34. #define BM_SENDUNBLANK 19
  35. #define BM_TIMER       20
  36. #define BM_CHECKMOUSE  21
  37. #define BM_PING        22
  38.  
  39. /* Blanker message/prefs flags */
  40. #define BF_LOCKED    ( 1L << 0 )
  41. #define BF_REPLY     ( 1L << 1 )
  42. #define BF_INTERNAL  ( 1L << 2 )
  43. #define BF_REPLACE   ( 1L << 3 )
  44.  
  45. /* Prefs->bp_BlankCorner defines */
  46. #define BC_UPPERLEFT  1
  47. #define BC_UPPERRIGHT 2
  48. #define BC_LOWERRIGHT 3
  49. #define BC_LOWERLEFT  4
  50.  
  51. /* Signal masks */
  52. #define SIG_SERVWIN ( BlankerWnd ? 1L << BlankerWnd->UserPort->mp_SigBit : 0L )
  53. #define SIG_SERVPORT  ( 1L << ServerPort->mp_SigBit )
  54. #define SIG_TIMER   ( 1L << TimerPort->mp_SigBit )
  55. #define SIG_PORT ( 1L << ClientPort->mp_SigBit )
  56. #define SIG_WIN  ( WndSignal() )
  57. #define SIG_REQHANDLER ( ReqHandler ? ReqHandler->WaitMask : 0L )
  58.  
  59. typedef struct _BlankerEntry
  60. {
  61.     struct Node be_Node;
  62.     BYTE *be_Name;
  63.     BYTE be_Path[128];
  64.     BYTE be_PrefFile[128];
  65. } BlankerEntry;
  66.  
  67. typedef struct _BlankerPrefs
  68. {
  69.     LONG bp_Priority;
  70.     LONG bp_PopUp;
  71.     LONG bp_Timeout;
  72.     LONG bp_BlankCorner;
  73.     LONG bp_DontCorner;
  74.     BYTE bp_PopKey[128];
  75.     BYTE bp_BlankKey[128];
  76.     BYTE bp_Blanker[64];
  77.     BYTE bp_Dir[128];
  78.     LONG bp_Flags;
  79.     LONG bp_Left;
  80.     LONG bp_Top;
  81. } BlankerPrefs;
  82.  
  83. typedef struct _BlankMsg
  84. {
  85.     struct Message bm_Mess;
  86.     LONG bm_Type;
  87.     LONG bm_Flags;
  88. } BlankMsg;
  89.