home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Snippets / GetVersion 1.0 / GetVersion.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-03  |  520 b   |  32 lines  |  [TEXT/KAHL]

  1. #pragma once
  2.  
  3.     /*
  4.         This structure matches ResEdit's editor rather than the 
  5.         'vers' type definition in Apple's SysTypes.r file.
  6.     */
  7.  
  8. typedef struct 
  9. {
  10.     short Major;  /* ie. 1.2.3 */
  11.     short Minor;
  12.     short Minuscule;
  13.  
  14.     enum
  15.     {
  16.         kDevelopmentVersion = 0x20, 
  17.         kAlphaVersion       = 0x40, 
  18.         kBetaVersion        = 0x60, 
  19.         kFinalVersion       = 0x80
  20.     } Stage;
  21.     short Release;
  22.     
  23.     short Region; /* Country code */
  24.     
  25.     Str255 ShortDescription;
  26.     Str255 LongDescription;
  27.  
  28. } VERSION;
  29.  
  30.  
  31. void GetVersion( short id, VERSION* ver );
  32.