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.

117 lines
2.7 KiB

  1. /*
  2. * verinfo.h - header file to define the build version
  3. *
  4. */
  5. //
  6. // Force all builds to default to private
  7. //
  8. #ifdef OFFICIAL_BUILD
  9. #define OFFICIAL 1
  10. #endif
  11. // Uncomment the following line for a non time bombed build
  12. //#define DX_FINAL_RELEASE 1
  13. #ifndef DX_FINAL_RELEASE
  14. #define DX_EXPIRE_YEAR 2000
  15. #define DX_EXPIRE_MONTH 7 /* Jan=1, Feb=2, etc .. */
  16. #define DX_EXPIRE_DAY 4
  17. #define DX_EXPIRE_TEXT TEXT("This pre-release version of DirectX has expired, please upgrade to the latest version.")
  18. #endif
  19. #define MANVERSION 4
  20. #define MANREVISION 8
  21. #define MANMINORREV 1
  22. #define BUILD_NUMBER 0022
  23. #ifdef RC_INVOKED
  24. #define VERSIONPRODUCTNAME "Microsoft\256 DirectX for Windows\256 95 and 98\0"
  25. #define VERSIONCOPYRIGHT "Copyright \251 Microsoft Corp. 1994-2000\0"
  26. #endif
  27. /***************************************************************************
  28. * DO NOT TOUCH BELOW THIS LINE *
  29. ***************************************************************************/
  30. #ifdef RC_INVOKED
  31. #define VERSIONCOMPANYNAME "Microsoft Corporation\0"
  32. /*
  33. * Version flags
  34. */
  35. //
  36. // these two #define's are for RTM release
  37. //
  38. //#define FINAL
  39. #undef VER_PRIVATEBUILD
  40. #ifndef OFFICIAL
  41. #define VER_PRIVATEBUILD VS_FF_PRIVATEBUILD
  42. #else
  43. #define VER_PRIVATEBUILD 0
  44. #endif
  45. #undef VER_PRERELEASE
  46. #ifndef FINAL
  47. #define VER_PRERELEASE VS_FF_PRERELEASE
  48. #else
  49. #define VER_PRERELEASE 0
  50. #endif
  51. #undef VER_DEBUG
  52. #ifdef DEBUG
  53. #define VER_DEBUG VS_FF_DEBUG
  54. #elif RDEBUG
  55. #define VER_DEBUG VS_FF_DEBUG
  56. #else
  57. #define VER_DEBUG 0
  58. #endif
  59. #define VERSIONFLAGS (VER_PRIVATEBUILD|VER_PRERELEASE|VER_DEBUG)
  60. #define VERSIONFILEFLAGSMASK 0x0030003FL
  61. #endif
  62. //
  63. // Make versioning more automatic
  64. // bugbug clean up for 7.0
  65. //
  66. #ifdef ADJ_MANREVISION
  67. #undef MANREVISION
  68. // extra spaces intended to correct a problem
  69. #define MANREVISION ADJ_MANREVISION
  70. #endif
  71. #if (MANMINORREV < 10)
  72. #define MMR_BPAD "0"
  73. #else
  74. #define MMR_BPAD
  75. #endif
  76. #if (MANREVISION < 10)
  77. #define MR_BPAD "0"
  78. #else
  79. #define MR_BPAD
  80. #endif
  81. #if (BUILD_NUMBER < 10)
  82. #define BN_BPAD "000"
  83. #elif (BUILD_NUMBER < 100)
  84. #define BN_BPAD "00"
  85. #elif (BUILD_NUMBER < 1000)
  86. #define BN_BPAD "0"
  87. #else
  88. #define BN_BPAD ""
  89. #endif
  90. #define BUILD_NUMBER_STR2(x) BN_BPAD #x
  91. #define BUILD_NUMBER_STR1(x) BUILD_NUMBER_STR2(x)
  92. #define BUILD_NUMBER_STR BUILD_NUMBER_STR1(BUILD_NUMBER)
  93. #define VERSION_STR2(w,x,y,z) #w "." MR_BPAD #x "." MMR_BPAD #y "." BN_BPAD #z
  94. #define VERSION_STR1(w,x,y,z) VERSION_STR2(w, x, y, z)
  95. #define VERSIONSTR VERSION_STR1(MANVERSION, MANREVISION, MANMINORREV, BUILD_NUMBER)