home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 25: Programming / pc_actual_25.iso / C_C++ / BorlandCompiler / freecommandLinetools.exe / Include / common.ver < prev    next >
Encoding:
Text File  |  2000-06-27  |  5.1 KB  |  141 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-1999"
  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 (R) 2000 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 VER_LANGNEUTRAL
  79. #define VER_VERSION_UNICODE_LANG  "000004B0" /* LANG_NEUTRAL/SUBLANG_NEUTRAL, Unicode CP */
  80. #define VER_VERSION_ANSI_LANG     "000004E4" /* LANG_NEUTRAL/SUBLANG_NEUTRAL, Ansi CP */
  81. #define VER_VERSION_TRANSLATION   0x0000, 0x04B0
  82. #else
  83. #define VER_VERSION_UNICODE_LANG  "040904B0" /* LANG_ENGLISH/SUBLANG_ENGLISH_US, Unicode CP */
  84. #define VER_VERSION_ANSI_LANG     "0c0904E4" /* LANG_ENGLISH/SUBLANG_ENGLISH_US, Ansi CP */
  85. #define VER_VERSION_TRANSLATION   0x0409, 0x04B0
  86. #endif
  87.  
  88. #ifdef RC_INVOKED
  89.  
  90. VS_VERSION_INFO VERSIONINFO
  91. FILEVERSION    VER_FILEVERSION
  92. PRODUCTVERSION VER_PRODUCTVERSION
  93. FILEFLAGSMASK  VER_FILEFLAGSMASK
  94. FILEFLAGS      VER_FILEFLAGS
  95. FILEOS         VER_FILEOS
  96. FILETYPE       VER_FILETYPE
  97. FILESUBTYPE    VER_FILESUBTYPE
  98. BEGIN
  99.     BLOCK "StringFileInfo"
  100.     BEGIN
  101.         BLOCK VER_VERSION_UNICODE_LANG
  102.         BEGIN
  103.             VALUE "CompanyName",     VER_COMPANYNAME_STR
  104.             VALUE "FileDescription", VER_FILEDESCRIPTION_STR EXPORT_TAG
  105.             VALUE "FileVersion",     VER_FILEVERSION_STR
  106.             VALUE "InternalName",    VER_INTERNALNAME_STR
  107.             VALUE "LegalCopyright",  VER_LEGALCOPYRIGHT_STR
  108.             VALUE "OriginalFilename",VER_ORIGINALFILENAME_STR
  109.             VALUE "ProductName",     VER_PRODUCTNAME_STR
  110.             VALUE "ProductVersion",  VER_PRODUCTVERSION_STR
  111. #ifdef VER_OLESELFREGISTER
  112.             VALUE "OleSelfRegister", "\0"
  113. #endif
  114.         END
  115.  
  116. #ifdef VER_ANSICP    /* Some apps are hard coded to look for ANSI CP. */
  117.     BLOCK VER_VERSION_ANSI_LANG
  118.         BEGIN
  119.             VALUE "CompanyName",     VER_COMPANYNAME_STR
  120.             VALUE "FileDescription", VER_FILEDESCRIPTION_STR EXPORT_TAG
  121.             VALUE "FileVersion",     VER_FILEVERSION_STR
  122.             VALUE "InternalName",    VER_INTERNALNAME_STR
  123.             VALUE "LegalCopyright",  VER_LEGALCOPYRIGHT_STR
  124.             VALUE "OriginalFilename",VER_ORIGINALFILENAME_STR
  125.             VALUE "ProductName",     VER_PRODUCTNAME_STR
  126.             VALUE "ProductVersion",  VER_PRODUCTVERSION_STR
  127. #ifdef VER_OLESELFREGISTER
  128.             VALUE "OleSelfRegister", "\0"
  129. #endif
  130.         END
  131. #endif
  132.     END
  133.  
  134.     BLOCK "VarFileInfo"
  135.     BEGIN
  136.         VALUE "Translation", VER_VERSION_TRANSLATION
  137.     END
  138. END
  139.  
  140. #endif
  141.