home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / common.ver < prev    next >
Text File  |  1998-04-25  |  5KB  |  131 lines

  1.  
  2. /*---------------------------------------------------------------*/
  3. /*                                                               */
  4. /* The following section actually creates the version structure. */
  5. /* They are ignored if we are not being invoked by RC.           */
  6. /*                                                               */
  7. /* ntverp.H must be included before including this file          */
  8. /*                                                               */
  9. /* If VER_LEGALCOPYRIGHT_STR is not defined, it will be          */
  10. /* constructed using VER_LEGALCOPYRIGHT_YEARS, so at least one   */
  11. /* these macros must be defined before including this file.      */
  12. /*                                                               */
  13. /* VER_FILETYPE, VER_FILESUBTYPE, VER_FILEDESCRIPTION_STR, and   */
  14. /* VER_INTERNALNAME_STR must be defined before including this    */
  15. /* file.                                                         */
  16. /*                                                               */
  17. /* If VER_FILEVERSION is not defined, VER_PRODUCTVERSION will be */
  18. /* used instead.  If VER_FILEVERSION_STR is not defined,         */
  19. /* VER_PRODUCTVERSION_STR will be used instead.                  */
  20. /*                                                               */
  21. /* If VER_ORIGINALFILENAME_STR is not defined, it is set to      */
  22. /* the value in VER_INTERNALNAME_STR.                            */
  23. /*                                                               */
  24. /* If INTL is defined, then this is assumed to be an             */
  25. /* an international build; two string blocks will be created,    */
  26. /* (since all version resources must have English), and the      */
  27. /* second one can be localized                                   */
  28. /*                                                               */
  29. /*---------------------------------------------------------------*/
  30.  
  31.  
  32. #ifndef VER_LEGALCOPYRIGHT_YEARS
  33. #define VER_LEGALCOPYRIGHT_YEARS    "1981-1997"
  34. #endif
  35.  
  36. #ifndef VER_LEGALCOPYRIGHT_STR
  37. #define VER_LEGALCOPYRIGHT_STR "Copyright (C) Microsoft Corp. " VER_LEGALCOPYRIGHT_YEARS
  38. #endif
  39.  
  40. #ifndef VER_PRODUCTNAME_STR
  41. #define VER_PRODUCTNAME_STR "Microsoft (R) Windows NT(R) Operating System"
  42. #endif
  43.  
  44. #ifndef VER_PRODUCTVERSION
  45. #define VER_PRODUCTVERSION 5,00,01,001
  46. #endif
  47.  
  48. #ifndef VER_FILEVERSION
  49. #define VER_FILEVERSION VER_PRODUCTVERSION
  50. #endif
  51.  
  52. #ifndef VER_PRODUCTVERSION_STR
  53. #define VER_PRODUCTVERSION_STR "5.00"
  54. #endif
  55.  
  56. #ifndef VER_FILEVERSION_STR
  57. #define VER_FILEVERSION_STR VER_PRODUCTVERSION_STR
  58. #endif
  59.  
  60. #ifndef VER_ORIGINALFILENAME_STR
  61. #define VER_ORIGINALFILENAME_STR VER_INTERNALNAME_STR
  62. #endif
  63.  
  64. #ifdef EXPORT_CONTROLLED
  65.  
  66. #ifdef EXPORT
  67. #define EXPORT_TAG  " (Export Version)"
  68. #else
  69. #define EXPORT_TAG  " (US/Canada Only, Not for Export)"
  70. #endif
  71.  
  72. #else           /* Not Export Controlled */
  73.  
  74. #define EXPORT_TAG
  75.  
  76. #endif
  77.  
  78. #ifdef RC_INVOKED
  79.  
  80. VS_VERSION_INFO VERSIONINFO
  81. FILEVERSION    VER_FILEVERSION
  82. PRODUCTVERSION VER_PRODUCTVERSION
  83. FILEFLAGSMASK  VER_FILEFLAGSMASK
  84. FILEFLAGS      VER_FILEFLAGS
  85. FILEOS         VER_FILEOS
  86. FILETYPE       VER_FILETYPE
  87. FILESUBTYPE    VER_FILESUBTYPE
  88. BEGIN
  89.     BLOCK "StringFileInfo"
  90.     BEGIN
  91.         BLOCK "040904B0"   /* LANG_ENGLISH/SUBLANG_ENGLISH_US, Unicode CP */
  92.         BEGIN
  93.             VALUE "CompanyName",     VER_COMPANYNAME_STR
  94.             VALUE "FileDescription", VER_FILEDESCRIPTION_STR EXPORT_TAG
  95.             VALUE "FileVersion",     VER_FILEVERSION_STR
  96.             VALUE "InternalName",    VER_INTERNALNAME_STR
  97.             VALUE "LegalCopyright",  VER_LEGALCOPYRIGHT_STR
  98.             VALUE "OriginalFilename",VER_ORIGINALFILENAME_STR
  99.             VALUE "ProductName",     VER_PRODUCTNAME_STR
  100.             VALUE "ProductVersion",  VER_PRODUCTVERSION_STR
  101. #ifdef VER_OLESELFREGISTER
  102.             VALUE "OleSelfRegister", "\0"
  103. #endif
  104.         END
  105.  
  106. #ifdef VER_ANSICP    /* Some apps are hard coded to look for ANSI CP. */
  107.     BLOCK "040904E4"   /* LANG_ENGLISH/SUBLANG_ENGLISH_US, Ansi CP */
  108.         BEGIN
  109.             VALUE "CompanyName",     VER_COMPANYNAME_STR
  110.             VALUE "FileDescription", VER_FILEDESCRIPTION_STR EXPORT_TAG
  111.             VALUE "FileVersion",     VER_FILEVERSION_STR
  112.             VALUE "InternalName",    VER_INTERNALNAME_STR
  113.             VALUE "LegalCopyright",  VER_LEGALCOPYRIGHT_STR
  114.             VALUE "OriginalFilename",VER_ORIGINALFILENAME_STR
  115.             VALUE "ProductName",     VER_PRODUCTNAME_STR
  116.             VALUE "ProductVersion",  VER_PRODUCTVERSION_STR
  117. #ifdef VER_OLESELFREGISTER
  118.             VALUE "OleSelfRegister", "\0"
  119. #endif
  120.         END
  121. #endif
  122.     END
  123.  
  124.     BLOCK "VarFileInfo"
  125.     BEGIN
  126.         VALUE "Translation", 0x0409, 0x04B0
  127.     END
  128. END
  129.  
  130. #endif
  131.