home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1991 …esperately Seeking Seven / Desperately Seeking Seven.2mg / Dev.CD.8 / Essentials / Tools / DTS.Samples / SC02BusyBox / BusyBox.c / Busy.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-25  |  1.2 KB  |  44 lines  |  [04] ASCII Text (0x0000)

  1. /***********************************************************************
  2. *
  3. * busybox.c -- Version 3.0  (Main Program)
  4. *
  5. * Copyright (c)
  6. * Apple Computer, Inc.  1986-1990
  7. * All Rights Reserved.
  8. *
  9. * Developer Technical Support Apple II Sample Code
  10. *
  11. * This file contains the busybox program.
  12. *
  13. ***********************************************************************/
  14.  
  15. #include <types.h>
  16. #include <quickdraw.h>
  17. #include <locator.h>
  18. #include <memory.h>
  19.  
  20. extern unsigned int    userID;
  21.  
  22. main()
  23. {
  24.     Ref     initRef;        /* This holds the reference to the startstop record */
  25.  
  26.     initGlobals();          /* Initialize our globals. */
  27.     
  28.     userID = MMStartUp();   /* Start up and get ID from memory manager */
  29.     TLStartUp();                /* Start up the tool locator */
  30.  
  31.     /* Startup the tools using the new toolbox call */
  32.     initRef = StartUpTools(_ownerid, refIsResource, 0x0001L);
  33.     if (!_toolErr) {
  34.         setupMenus();       /* Set up menus */
  35.         setupWindows();
  36.         InitCursor();       /* Make cursor show ready */
  37.         mainEvent();        /* Use application */
  38.     }
  39.  
  40.     ShutDownTools(refIsHandle, initRef);   /* Let toolbox shutdown the tools. */
  41.     TLShutDown();                          /* Shut down the tool locator */
  42.         
  43. }
  44.