home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / PPPOn 1.0.1 / src / PPPOn.c
Encoding:
C/C++ Source or Header  |  1996-01-04  |  1.1 KB  |  51 lines  |  [TEXT/CWIE]

  1. /* ----------------------------------------------------------------------
  2.  
  3.     PPPOn
  4.     establishes a PPP session on a Mac with MacTCP and MacPPP installed.
  5.     
  6.     Written by: Paul Celestin
  7.     
  8.     950621 - work begins on the project
  9.     951215 - updated for CW7
  10.  
  11. ---------------------------------------------------------------------- */
  12.  
  13.  
  14. /* ----------------------------------------------------------------------
  15. includes
  16. ---------------------------------------------------------------------- */
  17.  
  18. #include    "pppcontrol.h"
  19.  
  20.  
  21. /* ----------------------------------------------------------------------
  22. main - here is where it all began...
  23. ---------------------------------------------------------------------- */
  24. void main()
  25. {
  26.     OSErr myErr;
  27.  
  28.     InitToolBox();
  29.     if (!pppup())
  30.     {
  31.         myErr = pppopen();
  32.     }
  33.     ExitToShell();
  34. }
  35.  
  36.  
  37. /* ----------------------------------------------------------------------
  38. InitToolBox
  39. ---------------------------------------------------------------------- */
  40. void InitToolBox()
  41. {
  42.     InitGraf(&qd.thePort);
  43.     InitFonts();
  44.     FlushEvents(everyEvent, 0);
  45.     InitWindows();
  46.     InitMenus();
  47.     TEInit();
  48.     InitDialogs(0L);
  49.     InitCursor();
  50. }
  51.