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.

46 lines
1.5 KiB

  1. //
  2. // ccver.h
  3. //
  4. // App compat hack. Apps, as always, mess up the major/minor version
  5. // check, so they think that 5.0 is less than 4.71 because they use
  6. //
  7. // if (major < 4 && minor < 71) Fail();
  8. //
  9. //
  10. // So we artificially add 80 to our minor version, so 5.0 becomes 5.80,
  11. // etc. Note that the hex version is 0x050, since 0x50 = 80 decimal.
  12. //
  13. //
  14. // The C preprocessor isn't smart enough to extract the commas out of
  15. // a value string, so we just do it all by hand and assert that nobody
  16. // has messed with <ntverp.h> or <ieverp.h> in a significant way.
  17. //
  18. #if _WIN32_IE == 0x0500
  19. #define VER_FILEVERSION 5,80,VER_PRODUCTBUILD,VER_PRODUCTBUILD_QFE
  20. #define VER_FILEVERSION_STR "5.80"
  21. #define VER_FILEVERSION_W 0x0550
  22. #define VER_FILEVERSION_DW (0x05500000 | VER_PRODUCTBUILD)
  23. #elif _WIN32_IE == 0x0501
  24. #define VER_FILEVERSION 5,81,VER_PRODUCTBUILD,VER_PRODUCTBUILD_QFE
  25. #define VER_FILEVERSION_STR "5.81"
  26. #define VER_FILEVERSION_W 0x0551
  27. #define VER_FILEVERSION_DW (0x05510000 | VER_PRODUCTBUILD)
  28. #elif _WIN32_IE == 0x0600
  29. #define VER_FILEVERSION 6,0,VER_PRODUCTBUILD,VER_PRODUCTBUILD_QFE
  30. #define VER_FILEVERSION_STR "6.0"
  31. #define VER_FILEVERSION_W 0x0600
  32. #define VER_FILEVERSION_DW (0x06000000 | VER_PRODUCTBUILD)
  33. #else
  34. //
  35. // If this #error fires, you have to add a new version mapping.
  36. //
  37. #error Need to modify ccver.h for new IE/NT version.
  38. #endif