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.

108 lines
2.5 KiB

  1. //
  2. // Apps' rc files should look like this:
  3. //
  4. /**
  5. #include "windows.h"
  6. #include "ntverp.h"
  7. #define VER_FILEDESCRIPTION_STR "File Description"
  8. #define VER_INTERNALNAME_STR "Internal Name"
  9. #define VER_ORIGINALFILENAME_STR "Original Name"
  10. #define VER_FILETYPE VFT_DLL
  11. #include "iisver.h"
  12. #include "common.ver"
  13. **/
  14. //
  15. // Apps may also define, in the same place as the other defines, above:
  16. // VER_FILESUBTYPE
  17. // VER_IISPRODUCTNAME_STR
  18. // VER_IISMAJORVERSION
  19. // VER_IISMINORVERSION
  20. // VER_IISPRODUCTVERSION_STR
  21. // VER_IISPRODUCTVERSION
  22. // VER_IISPRODUCTBUILD
  23. //
  24. #ifndef VER_FILEDESCRIPTION_STR
  25. #define VER_FILEDESCRIPTION_STR "IIS Executable"
  26. #endif
  27. #ifndef VER_INTERNALNAME_STR
  28. #define VER_INTERNALNAME_STR "IISFile.exe"
  29. #endif
  30. #ifndef VER_ORIGINALFILENAME_STR
  31. #define VER_ORIGINALFILENAME_STR VER_INTERNALNAME_STR
  32. #endif
  33. #ifdef VER_PRODUCTNAME_STR
  34. #undef VER_PRODUCTNAME_STR
  35. #endif
  36. #ifndef VER_IISPRODUCTNAME_STR
  37. #define VER_IISPRODUCTNAME_STR "Internet Information Services"
  38. #endif
  39. #define VER_PRODUCTNAME_STR VER_IISPRODUCTNAME_STR
  40. #ifndef VER_IISMAJORVERSION
  41. #if _IIS_5_1
  42. #define VER_IISMAJORVERSION 5
  43. #else
  44. #define VER_IISMAJORVERSION 6
  45. #endif
  46. #endif
  47. #ifndef VER_IISMINORVERSION
  48. #if _IIS_5_1
  49. #define VER_IISMINORVERSION 1
  50. #else
  51. #define VER_IISMINORVERSION 0
  52. #endif
  53. #endif
  54. #ifdef VER_PRODUCTVERSION_STR
  55. #undef VER_PRODUCTVERSION_STR
  56. #endif
  57. #define VER_IISPRODUCTVERSION_STRING VER_PRODUCTVERSION_MAJORMINOR1(VER_IISMAJORVERSION, VER_IISMINORVERSION)
  58. #define VER_IISPRODUCTVERSION_STR2(x,y) VER_IISPRODUCTVERSION_STRING "." VER_BPAD #x "." #y
  59. #define VER_IISPRODUCTVERSION_STR1(x,y) VER_IISPRODUCTVERSION_STR2(x, y)
  60. #define VER_PRODUCTVERSION_STR VER_IISPRODUCTVERSION_STR1(VER_PRODUCTBUILD, VER_PRODUCTBUILD_QFE)
  61. //
  62. // VER_PRODUCTBUILD is defined by ntverp.h as the nt build number
  63. //
  64. #ifndef VER_PRODUCTBUILD
  65. #define VER_PRODUCTBUILD 0984
  66. #endif
  67. #ifndef VER_IISPRODUCTBUILD
  68. #define VER_IISPRODUCTBUILD VER_PRODUCTBUILD
  69. #endif
  70. #ifdef VER_PRODUCTVERSION
  71. #undef VER_PRODUCTVERSION
  72. #endif
  73. #ifndef VER_IISPRODUCTVERSION
  74. #define VER_IISPRODUCTVERSION VER_IISMAJORVERSION,VER_IISMINORVERSION,VER_IISPRODUCTBUILD,VER_PRODUCTBUILD_QFE
  75. #endif
  76. #define VER_PRODUCTVERSION VER_IISPRODUCTVERSION
  77. #ifndef VER_FILEVERSION
  78. #define VER_FILEVERSION VER_PRODUCTVERSION
  79. #endif
  80. #ifndef VER_FILETYPE
  81. #define VER_FILETYPE VFT_DLL
  82. #endif
  83. #ifndef VER_FILESUBTYPE
  84. #define VER_FILESUBTYPE VFT2_UNKNOWN
  85. #endif