Windows2000/private/shell/comctl32/ccver.h
2020-09-30 17:12:32 +02:00

39 lines
1.2 KiB
C

// ccver.h
// App compat hack. Apps, as always, screw up the major/minor version
// check, so they think that 5.0 is less than 4.71 because they use
// if (major < 4 && minor < 71) Fail();
// So we artificially add 80 to our minor version, so 5.0 becomes 5.80,
// etc. Note that the hex version is 0x050, since 0x50 = 80 decimal.
// The C preprocessor isn't smart enough to extract the commas out of
// a value string, so we just do it all by hand and assert that nobody
// has messed with <ntverp.h> or <ieverp.h> in a significant way.
#if _WIN32_IE == 0x0500
#define VER_FILEVERSION 5,80,VER_PRODUCTBUILD,VER_PRODUCTBUILD_QFE
#define VER_FILEVERSION_STR "5.80"
#define VER_FILEVERSION_W 0x0550
#define VER_FILEVERSION_DW (0x05500000 | VER_PRODUCTBUILD)
#elif _WIN32_IE == 0x0501
#define VER_FILEVERSION 5,81,VER_PRODUCTBUILD,VER_PRODUCTBUILD_QFE
#define VER_FILEVERSION_STR "5.81"
#define VER_FILEVERSION_W 0x0551
#define VER_FILEVERSION_DW (0x05510000 | VER_PRODUCTBUILD)
#else
// If this #error fires, you have to add a new version mapping.
#error Need to modify ccver.h for new IE/NT version.
#endif