home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Abalone 1.4.2 / src / AppleEvent.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-21  |  900 b   |  45 lines  |  [TEXT/MPS ]

  1. #ifndef APPLEEVENT_H
  2. #define APPLEEVENT_H
  3.  
  4. #ifndef THINK_C
  5. #include <Events.h>
  6. #include <Types.h>
  7. #endif
  8. #include <AppleEvents.h>
  9.  
  10. void            InitAppleEvents (void);
  11. void            DoHighLevelEvent (EventRecord *event);
  12. OSErr            GetTargetInfo (AEAddressDesc targetDesc, char *zone, char *machine, char *application);
  13. OSErr            MakeTarget (AEAddressDesc *target, Boolean sendDirect, short replyMode, Str255 prompt, Str255 applListLabel, PPCFilterUPP portFilter);
  14.  
  15. #endif
  16.  
  17.  
  18. #ifdef APPLE_EVENT_C
  19.  
  20. #ifndef THINK_C
  21. #include <GestaltEqu.h>
  22. #include <Menus.h>
  23. #include <StandardFile.h>
  24. #endif
  25.  
  26. #include "AEHandler.h"
  27. #include "Error.h"
  28. #include "OSUtils.h"
  29. #include "StringLib.h"
  30.  
  31.  
  32. #define kCustomEventClass    'CUST'
  33.  
  34. #define keyLongReply        'KLRP'
  35. #define keyShortReply        'KSRP'
  36. #define keyGameID            'GAME'
  37. #define keyTime                'TIME'
  38.  
  39. #define typeTheBoard        'BORD'
  40. #define typeGame            'GAME'
  41.  
  42.  
  43. #define keyReplyErr            'errn'
  44.  
  45. #endif