home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Demos / Tools / QC™ 1.1.3 / QCAPI / BadAPPL / BadAPPL src / BadGestalt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-21  |  1.3 KB  |  60 lines  |  [TEXT/R*ch]

  1. /* _____________________________________________________________________
  2.  
  3.     BadGestalt.h
  4.  
  5.     Copyright © 1993-1995 Onyx Technology - All rights reserved
  6.  
  7.     The routines in this file gather information about the environment
  8.     we're running in.  Whenever possible they use Gestalt as the first
  9.     choice and SysEnvirons as a last resort.
  10. _____________________________________________________________________ */
  11.  
  12. #ifndef    _H_BadGestalt
  13. #define    _H_BadGestalt
  14.  
  15. #ifndef    __GESTALTEQU__
  16. #include <GestaltEqu.h>
  17. #endif
  18. #ifndef    __TRAPS__
  19. #include  <Traps.h>
  20. #endif
  21.  
  22. #define        GestaltTrap        0xA1AD
  23.  
  24. /* bit test masks    */
  25. #define        System7            0x00000700            /* used in sysvers checks    */
  26. #define        Is32BitCapable    0x00000004            /* used in Is32BitCapable    */
  27. #define        In32BitMode        0x00000001            /* used in NewGetMMUMode    */
  28. #define        bitZero            0x00000001
  29.  
  30. #ifndef    _GestaltDispatch
  31. #define     _GestaltDispatch    0xA0AD
  32. #endif
  33.  
  34. #ifndef    InitGrafTrap
  35. #define        InitGrafTrap        0xA86E
  36. #endif
  37.  
  38. #define        TrapMask            0x0800
  39.  
  40. #ifndef    _Unimplemented
  41. #define        _Unimplemented        0x9F
  42. #endif
  43.  
  44. #ifdef    THINK_C
  45. #define        OSTrap                1
  46. #endif
  47. #define        ToolBoxTrap            2
  48.  
  49.  
  50. /*    prototypes    */
  51. long    GetSystemVers(void);
  52. short    HasGestalt(void);
  53. short    GetQDVers(void);
  54. Boolean    ColorQDIsPresent(void);
  55. short    TrapAvailable(short theTrap);
  56. short    NumToolboxTraps(void);
  57. short    GetTrapType(short theTrap);
  58.  
  59. #endif    //_H_BadGestalt
  60.