home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 December / macformat-031.iso / mac / Shareware City / Developers / CopyBits Demo 3.1 / System Utilities.h < prev   
Encoding:
Text File  |  1995-06-02  |  1015 b   |  39 lines  |  [TEXT/MMCC]

  1. // System Utilities.c
  2. //
  3. // by Kenneth Worley
  4. // Public Domain
  5. //
  6. // Contact me at: America Online: KNEworley
  7. //        internet: KNEworley@aol.com or kworley@fascination.com
  8. //
  9. // Functions that make it easier to get system information.
  10. //
  11.  
  12. #ifndef System_Utilities_h
  13. #define System_Utilities_h
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18.  
  19. // InitToolbox initializes all the usual Mac toolbox managers.
  20. void InitToolbox( void );
  21.  
  22. // GetSysVersion is mostly useful to determine what major
  23. // system version is running. It returns 7 if system 7 or later
  24. // is running, 6 if system 6 or later (but not 7) is running,
  25. // and zero if the system version is less than 6.
  26. short    GetSysVersion( void );
  27.  
  28. // HasColorQuickDraw returns true if the system has color QuickDraw.
  29. Boolean HasColorQuickDraw( void );
  30.  
  31. // WindowDevice returns a handle to the graphics device record of
  32. // the monitor that the window specified is displayed on.
  33. GDHandle WindowDevice( WindowPtr winPtr );
  34.  
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38.  
  39. #endif // System_Utilities_h