Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

130 lines
4.6 KiB

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