// // ccver.h // // App compat hack. Apps, as always, mess 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 or 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) #elif _WIN32_IE == 0x0600 #define VER_FILEVERSION 6,0,VER_PRODUCTBUILD,VER_PRODUCTBUILD_QFE #define VER_FILEVERSION_STR "6.0" #define VER_FILEVERSION_W 0x0600 #define VER_FILEVERSION_DW (0x06000000 | 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