home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / MacTCP Library 1.1 / UDP⁄TCP Probe ƒ / Source ƒ / UDP Probe.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-28  |  2.1 KB  |  92 lines  |  [TEXT/SPM ]

  1. /*
  2.     UDP Probe.h
  3.     
  4.     Header file for UDP Probe.c
  5.     
  6. */
  7.  
  8. #pragma once
  9.  
  10. #ifndef __H_UDP_Probe__
  11. #define __H_UDP_Probe__
  12.  
  13. #define kMBar            128
  14. #define kMApple        128
  15. #define    kMAbout            1
  16. #define kMFile            129
  17. #define    kMProbe            1
  18. #define    kMQuit            3
  19.  
  20. // Other Constants...
  21. #define kWindNoStorage    ((Ptr)0L)
  22. #define kWindInFront        ((WindowPtr)-1)
  23.  
  24. #ifndef normal
  25. #define normal            0    /* text face normal */
  26. #endif
  27.  
  28. extern Boolean gQuit;
  29. extern short gMacTCP;
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35. // General routines
  36. void main(void);
  37. OSErr InitToolbox(void);
  38. OSErr Initialize(void);
  39. OSErr CleanUp(void);
  40. OSErr MainLoop(void);
  41.  
  42. // Special TCP/Resolver routines
  43. pascal void ResolverDone(HostInfoPtr rp,char* userData);
  44.  
  45. // AppleEvent routines
  46. OSErr InitializeAppleEvents(void);
  47. pascal OSErr HandleOApp(AppleEvent* ae,AppleEvent* reply,long refCon);
  48. pascal OSErr HandleODoc(AppleEvent* ae,AppleEvent* reply,long refCon);
  49. pascal OSErr HandlePDoc(AppleEvent* ae,AppleEvent* reply,long refCon);
  50. pascal OSErr HandleQuit(AppleEvent* ae,AppleEvent* reply,long refCon);
  51. OSErr NotHandledEvent(AppleEvent* ae);
  52. OSErr HandleMissedParams(AppleEvent* ae);
  53. OSErr HandleRequiredParams(AppleEvent* ae);
  54.  
  55. // Event Handling Procedures
  56. OSErr HandleEvent(EventRecord* er);
  57. OSErr HandleLimitedMouse(EventRecord* er,short* part,Boolean* hand);
  58. OSErr HandleMouse(EventRecord* er);
  59. OSErr HandleKey(EventRecord* er);
  60. OSErr HandleActivateEvt(EventRecord* er);
  61. OSErr HandleUpdate(EventRecord* er);
  62. OSErr HandleDisk(EventRecord* er);
  63. OSErr HandleHighLevelEvent(EventRecord* er);
  64. OSErr HandleActivate(EventRecord* er);
  65. OSErr HandleDeactivate(EventRecord* er);
  66. OSErr HandleMouseMoved(EventRecord* er);
  67.  
  68. // Menu Routines
  69. OSErr HandleMenuEnabling(void);
  70. OSErr HandleMenu(long ms);
  71. OSErr HandleApple(short item);
  72. OSErr HandleFile(short item);
  73. OSErr HandleEdit(short item);
  74.  
  75. // Support Routines
  76. OSErr HandleError(StringPtr errStr,OSErr err);
  77. OSErr HandleLongError(StringPtr errStr,long err);
  78.  
  79. OSErr HandleAbout(void);
  80.  
  81. OSErr NewProbeDialog(void);
  82. OSErr HandleProbeDialog(EventRecord* erp,DialogPtr dlg,short item);
  83.  
  84. #ifdef __cplusplus
  85. }
  86. #endif
  87.  
  88. #endif /* __H_UDP_Probe__ */
  89.  
  90.  
  91.  
  92.