home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / PRG / ResetSrc.sit / ResetSrc / headers / ResetSrc.h
Text File  |  1996-06-16  |  2KB  |  97 lines

  1. /*
  2.  *--------------------------------------------------------------
  3.  * ResetSrc.h
  4.  *--------------------------------------------------------------
  5.  *    Copyright ゥ Fumio Rokkaku, 1996
  6.  *--------------------------------------------------------------
  7.  */
  8.  
  9. /*
  10.  *--------------------------------------------------------------
  11.  *    ResetSrc() specific constant
  12.  *--------------------------------------------------------------
  13.  */
  14. enum constResetSrc {
  15.     kMySignature    = '2CWT'
  16. };
  17.  
  18. enum constDataBase {
  19.     kCreatorID        = 128,
  20.     kCreatorType    = 'CRTR'
  21. };
  22.  
  23. /*
  24.  *--------------------------------------------------------------
  25.  *    key event character and key codes
  26.  *--------------------------------------------------------------
  27.  */
  28. enum constCharCodes {
  29.     kHomeKey     = 0x01,
  30.     kEnterKey    = 0x03,
  31.     kEndKey      = 0x04,
  32.     kDeleteKey    = 0x08,
  33.     kPageUpKey    = 0x0B,
  34.     kPgDownKey    = 0x0C,
  35.     kReturnKey    = 0x0D,
  36.     kEscapeKey    = 0x1B,
  37.     kLeftArrow    = 0x1C,
  38.     kRightArrow    = 0x1D,
  39.     kUpArrow     = 0x1E,
  40.     kDownArrow    = 0x1F
  41. };
  42. enum constKeyCodes {
  43.     kCommandKey    = 0x37,
  44.     kShiftKey    = 0x38,
  45.     kCapsKey    = 0x38,
  46.     kOptionKey    = 0x3A,
  47.     kCntrlKey    = 0x3B,
  48.     kHelpKey     = 0x72,
  49.     kFrwdDelete    = 0x7F
  50. };
  51.  
  52. /*
  53.  *--------------------------------------------------------------
  54.  *    function prototypes
  55.  *--------------------------------------------------------------
  56.  */
  57. /* ResetSrc.main.c */
  58. extern void ShowAboutDialog(void);
  59.  
  60. /* ResetSrc.AE.c */
  61. extern Boolean SetUpMyAppleEvent(void);
  62. extern void RemoveMyAppleEvent(void);
  63.  
  64. /* ResetSrc.file.c */
  65. extern OSErr DoTheSpec(FSSpecPtr spec);
  66.  
  67. /*
  68.  *--------------------------------------------------------------
  69.  *    macros
  70.  *--------------------------------------------------------------
  71.  */
  72. #ifndef    __MACROS__
  73. #define    __MACROS__    1
  74.  
  75. /* String Operarions */
  76. extern    void    PStrCpy(StringPtr src, StringPtr dst);
  77. extern    void    PStrCat(StringPtr src, StringPtr dst);
  78. extern    void    SetStrLen(StringPtr, unsigned char);
  79. extern    void    CatChar(const unsigned char ch, StringPtr dst);    
  80.  
  81. #define    PStrCpy(s, d)    { BlockMoveData((s), (d), (*(s)) +1); }
  82. #define    PStrCat(s, d)    { BlockMoveData( &(s)[1], &(d)[*(d) +1], *(s)); *(d) += *(s); }
  83. #define    SetStrLen(s, l)    ((s)[0] = (l))
  84. #define    CatChar(c, d)    { (d)[(d)[0]+1] = c; (d)[0] += 1; }
  85. #define    CopyString    PStrCpy
  86. #define    CatString    PStrCat
  87.  
  88. #endif    /* __MACROS__ */
  89.  
  90. /*
  91.  *--------------------------------------------------------------
  92.  *    globals
  93.  *--------------------------------------------------------------
  94.  */
  95. extern    Boolean    gDone;
  96.  
  97. /* end ResetSrc.h */