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.

95 lines
3.4 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. /* VERSION.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 NULL string. */
  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. #ifdef RC_INVOKED
  30. #ifndef VER_LEGALCOPYRIGHT_STR
  31. #define VER_LEGALCOPYRIGHT_STR "Copyright \251 Microsoft Corp. ", VER_LEGALCOPYRIGHT_YEARS, "\0"
  32. #endif
  33. #ifndef VER_FILEVERSION
  34. #define VER_FILEVERSION VER_PRODUCTVERSION
  35. #endif
  36. #ifndef VER_FILEVERSION_STR
  37. #define VER_FILEVERSION_STR VER_PRODUCTVERSION_STR
  38. #endif
  39. #ifndef VER_ORIGINALFILENAME_STR
  40. #define VER_ORIGINALFILENAME_STR "\0"
  41. #endif
  42. VS_VERSION_INFO VERSIONINFO
  43. FILEVERSION VER_FILEVERSION
  44. PRODUCTVERSION VER_PRODUCTVERSION
  45. FILEFLAGSMASK VER_FILEFLAGSMASK
  46. FILEFLAGS VER_FILEFLAGS
  47. FILEOS VER_FILEOS
  48. FILETYPE VER_FILETYPE
  49. FILESUBTYPE VER_FILESUBTYPE
  50. BEGIN
  51. BLOCK "StringFileInfo"
  52. BEGIN
  53. BLOCK "040904E4"
  54. BEGIN
  55. VALUE "CompanyName", VER_COMPANYNAME_STR, "\0"
  56. VALUE "FileDescription", VER_FILEDESCRIPTION_STR, "\0"
  57. VALUE "FileVersion", VER_FILEVERSION_STR, "\0"
  58. VALUE "InternalName", VER_INTERNALNAME_STR, "\0"
  59. VALUE "LegalCopyright", VER_LEGALCOPYRIGHT_STR, "\0"
  60. VALUE "OriginalFilename",VER_ORIGINALFILENAME_STR, "\0"
  61. VALUE "ProductName", VER_PRODUCTNAME_STR, "\0"
  62. VALUE "ProductVersion", VER_PRODUCTVERSION_STR, "\0"
  63. END
  64. #ifdef INTL
  65. BLOCK "040904E4"
  66. BEGIN
  67. VALUE "CompanyName", VER_COMPANYNAME_STR, "\0"
  68. VALUE "FileDescription", VER_FILEDESCRIPTION_STR, "\0"
  69. VALUE "FileVersion", VER_FILEVERSION_STR, "\0"
  70. VALUE "InternalName", VER_INTERNALNAME_STR, "\0"
  71. VALUE "LegalCopyright", VER_LEGALCOPYRIGHT_STR, "\0"
  72. VALUE "OriginalFilename",VER_ORIGINALFILENAME_STR, "\0"
  73. VALUE "ProductName", VER_PRODUCTNAME_STR, "\0"
  74. VALUE "ProductVersion", VER_PRODUCTVERSION_STR, "\0"
  75. END
  76. #endif
  77. END
  78. BLOCK "VarFileInfo"
  79. BEGIN
  80. /* the following line should be extended for localized versions */
  81. VALUE "Translation", 0x0409, 0x04E4
  82. END
  83. END
  84. #endif