Leaked source code of windows server 2003
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.

232 lines
9.1 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 "1985-2003"
  31. #endif
  32. #ifndef VER_LEGALCOPYRIGHT_STR
  33. #if defined(RC_INVOKED) && !defined(WIN16)
  34. #define VER_LEGALCOPYRIGHT_STR L"\251 Microsoft Corporation. All rights reserved."
  35. #else
  36. #define VER_LEGALCOPYRIGHT_STR "Copyright (c) Microsoft Corporation. All rights reserved."
  37. #endif
  38. #endif
  39. #ifndef VER_PRODUCTNAME_STR
  40. #ifdef RC_INVOKED
  41. #define VER_PRODUCTNAME_STR L"Microsoft\256 Windows\256 Operating System"
  42. #else
  43. #define VER_PRODUCTNAME_STR "Microsoft (R) Windows (R) Operating System"
  44. #endif
  45. #endif
  46. #ifndef VER_PRODUCTVERSION
  47. #define VER_PRODUCTVERSION 5,00,01,001
  48. #endif
  49. #ifndef VER_FILEVERSION
  50. #define VER_FILEVERSION VER_PRODUCTVERSION
  51. #endif
  52. #ifndef VER_PRODUCTVERSION_STR
  53. #define VER_PRODUCTVERSION_STR "5.00"
  54. #endif
  55. #ifndef VER_FILEVERSION_STR
  56. #define VER_FILEVERSION_STR VER_PRODUCTVERSION_STR
  57. #endif
  58. #ifndef VER_ORIGINALFILENAME_STR
  59. #define VER_ORIGINALFILENAME_STR VER_INTERNALNAME_STR
  60. #endif
  61. #ifdef EXPORT_CONTROLLED
  62. #ifdef EXPORT
  63. #define EXPORT_TAG " (Export Version)"
  64. #else
  65. #define EXPORT_TAG " (US/Canada Only, Not for Export)"
  66. #endif
  67. #else /* Not Export Controlled */
  68. #define EXPORT_TAG
  69. #endif
  70. #if defined(__BUILDMACHINE__)
  71. #if defined(__BUILDDATE__)
  72. #define B2(x,y) " (" #x "." #y ")"
  73. #define B1(x,y) B2(x, y)
  74. #define BUILD_MACHINE_TAG B1(__BUILDMACHINE__, __BUILDDATE__)
  75. #else
  76. #define B2(x) " built by: " #x
  77. #define B1(x) B2(x)
  78. #define BUILD_MACHINE_TAG B1(__BUILDMACHINE__)
  79. #endif
  80. #if defined(__BUILDMACHINE_LEN__)
  81. #if __BUILDMACHINE_LEN__ >= 25
  82. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG
  83. #elif __BUILDMACHINE_LEN__ == 24
  84. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  85. #elif __BUILDMACHINE_LEN__ == 23
  86. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  87. #elif __BUILDMACHINE_LEN__ == 22
  88. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  89. #elif __BUILDMACHINE_LEN__ == 21
  90. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  91. #elif __BUILDMACHINE_LEN__ == 20
  92. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  93. #elif __BUILDMACHINE_LEN__ == 19
  94. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  95. #elif __BUILDMACHINE_LEN__ == 18
  96. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  97. #elif __BUILDMACHINE_LEN__ == 17
  98. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  99. #elif __BUILDMACHINE_LEN__ == 16
  100. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  101. #elif __BUILDMACHINE_LEN__ == 15
  102. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  103. #elif __BUILDMACHINE_LEN__ == 14
  104. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  105. #elif __BUILDMACHINE_LEN__ == 13
  106. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  107. #elif __BUILDMACHINE_LEN__ == 12
  108. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  109. #elif __BUILDMACHINE_LEN__ == 11
  110. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  111. #elif __BUILDMACHINE_LEN__ == 10
  112. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  113. #elif __BUILDMACHINE_LEN__ == 9
  114. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  115. #elif __BUILDMACHINE_LEN__ == 8
  116. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  117. #elif __BUILDMACHINE_LEN__ == 7
  118. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  119. #elif __BUILDMACHINE_LEN__ == 6
  120. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  121. #elif __BUILDMACHINE_LEN__ == 5
  122. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  123. #elif __BUILDMACHINE_LEN__ == 4
  124. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  125. #elif __BUILDMACHINE_LEN__ == 3
  126. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  127. #elif __BUILDMACHINE_LEN__ == 2
  128. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  129. #elif __BUILDMACHINE_LEN__ == 1
  130. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG " "
  131. #else
  132. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG
  133. #endif
  134. #else
  135. #define BUILD_MACHINE_TAG_PADDED BUILD_MACHINE_TAG
  136. #endif
  137. #else
  138. #define BUILD_MACHINE_TAG
  139. #define BUILD_MACHINE_TAG_PADDED
  140. #endif
  141. #ifdef VER_LANGNEUTRAL
  142. #ifndef VER_VERSION_UNICODE_LANG
  143. #define VER_VERSION_UNICODE_LANG "000004B0" /* LANG_NEUTRAL/SUBLANG_NEUTRAL, Unicode CP */
  144. #endif
  145. #ifndef VER_VERSION_ANSI_LANG
  146. #define VER_VERSION_ANSI_LANG "000004E4" /* LANG_NEUTRAL/SUBLANG_NEUTRAL, Ansi CP */
  147. #endif
  148. #ifndef VER_VERSION_TRANSLATION
  149. #define VER_VERSION_TRANSLATION 0x0000, 0x04B0
  150. #endif
  151. #else
  152. #ifndef VER_VERSION_UNICODE_LANG
  153. #define VER_VERSION_UNICODE_LANG "040904B0" /* LANG_ENGLISH/SUBLANG_ENGLISH_US, Unicode CP */
  154. #endif
  155. #ifndef VER_VERSION_ANSI_LANG
  156. #define VER_VERSION_ANSI_LANG "0c0904E4" /* LANG_ENGLISH/SUBLANG_ENGLISH_US, Ansi CP */
  157. #endif
  158. #ifndef VER_VERSION_TRANSLATION
  159. #define VER_VERSION_TRANSLATION 0x0409, 0x04B0
  160. #endif
  161. #endif
  162. #ifdef RC_INVOKED
  163. VS_VERSION_INFO VERSIONINFO
  164. FILEVERSION VER_FILEVERSION
  165. PRODUCTVERSION VER_PRODUCTVERSION
  166. FILEFLAGSMASK VER_FILEFLAGSMASK
  167. FILEFLAGS VER_FILEFLAGS
  168. FILEOS VER_FILEOS
  169. FILETYPE VER_FILETYPE
  170. FILESUBTYPE VER_FILESUBTYPE
  171. BEGIN
  172. BLOCK "StringFileInfo"
  173. BEGIN
  174. BLOCK VER_VERSION_UNICODE_LANG
  175. BEGIN
  176. VALUE "CompanyName", VER_COMPANYNAME_STR
  177. VALUE "FileDescription", VER_FILEDESCRIPTION_STR EXPORT_TAG
  178. VALUE "FileVersion", VER_FILEVERSION_STR BUILD_MACHINE_TAG_PADDED
  179. VALUE "InternalName", VER_INTERNALNAME_STR
  180. VALUE "LegalCopyright", VER_LEGALCOPYRIGHT_STR
  181. VALUE "OriginalFilename",VER_ORIGINALFILENAME_STR
  182. VALUE "ProductName", VER_PRODUCTNAME_STR
  183. VALUE "ProductVersion", VER_PRODUCTVERSION_STR
  184. #ifdef VER_OLESELFREGISTER
  185. VALUE "OleSelfRegister", "\0"
  186. #endif
  187. END
  188. #ifdef VER_ANSICP /* Some apps are hard coded to look for ANSI CP. */
  189. BLOCK VER_VERSION_ANSI_LANG
  190. BEGIN
  191. VALUE "CompanyName", VER_COMPANYNAME_STR
  192. VALUE "FileDescription", VER_FILEDESCRIPTION_STR EXPORT_TAG
  193. VALUE "FileVersion", VER_FILEVERSION_STR
  194. VALUE "InternalName", VER_INTERNALNAME_STR
  195. VALUE "LegalCopyright", VER_LEGALCOPYRIGHT_STR
  196. VALUE "OriginalFilename",VER_ORIGINALFILENAME_STR
  197. VALUE "ProductName", VER_PRODUCTNAME_STR
  198. VALUE "ProductVersion", VER_PRODUCTVERSION_STR
  199. #ifdef VER_OLESELFREGISTER
  200. VALUE "OleSelfRegister", "\0"
  201. #endif
  202. END
  203. #endif
  204. END
  205. BLOCK "VarFileInfo"
  206. BEGIN
  207. VALUE "Translation", VER_VERSION_TRANSLATION
  208. END
  209. END
  210. #endif