|
// |
|
// Copyright (C) Microsoft. All rights reserved. |
|
// |
|
/**************************************************************************** |
|
* * |
|
* ntverp.H -- Version information for internal builds * |
|
* * |
|
* This file is only modified by the official builder to update the * |
|
* VERSION, VER_PRODUCTVERSION, VER_PRODUCTVERSION_STR and * |
|
* VER_PRODUCTBETA_STR values. * |
|
* * |
|
**************************************************************************** |
|
/*--------------------------------------------------------------*/ |
|
/* the following values should be modified by the official */ |
|
/* builder for each build */ |
|
/* */ |
|
/* the VER_PRODUCTBUILD lines must contain the product */ |
|
/* comments and end with the build#<CR><LF> */ |
|
/* */ |
|
/* the VER_PRODUCTBETA_STR lines must contain the product */ |
|
/* comments and end with "some string"<CR><LF> */ |
|
/*--------------------------------------------------------------*/ |
|
|
|
#if _MSC_VER > 1000 |
|
#pragma once |
|
#endif |
|
|
|
|
|
#define VER_PRODUCTBUILD /* NT */ 10011 |
|
#define VER_STATICPRODUCTBUILD 10011 |
|
|
|
#define VER_PRODUCTBUILD_QFE 16384 |
|
#define VER_STATICPRODUCTBUILD_QFE 16384 |
|
|
|
// |
|
// Several components now use NT's VER_PRODUCTBUILD and VER_PRODUCTBUILD_QFE, |
|
// but have their own major and minor version numbers. Those folks all define |
|
// VER_USE_OTHER_MAJOR_MINOR_VER before including ntverp.h |
|
// |
|
#if !defined(VER_USE_OTHER_MAJOR_MINOR_VER) |
|
|
|
// Postbuild will pick up these values as strings. Don't change |
|
// the syntax of these lines without updating postbuild! |
|
#define VER_PRODUCTMAJORVERSION 10 |
|
#define VER_PRODUCTMINORVERSION 0 |
|
|
|
#define VER_PRODUCTVERSION_W (0x0A00) |
|
#define VER_PRODUCTVERSION_DW (0x0A000000 | VER_PRODUCTBUILD) |
|
|
|
#endif // !VER_USE_OTHER_MAJOR_MINOR_VER |
|
|
|
#define VER_PRODUCTBETA_STR /* NT */ "" |
|
|
|
#define VER_PRODUCTVERSION_MAJORMINOR2(x,y) #x "." #y |
|
#define VER_PRODUCTVERSION_MAJORMINOR1(x,y) VER_PRODUCTVERSION_MAJORMINOR2(x, y) |
|
#define VER_PRODUCTVERSION_STRING VER_PRODUCTVERSION_MAJORMINOR1(VER_PRODUCTMAJORVERSION, VER_PRODUCTMINORVERSION) |
|
|
|
#if defined(_MSVC_TRADITIONAL) && _MSVC_TRADITIONAL |
|
#define LVER_PRODUCTVERSION_MAJORMINOR2(x,y) L#x L"." L#y |
|
#else |
|
#define LVER_PRODUCTVERSION_MAJORMINOR2(x,y) L## #x L"." L## #y |
|
#endif |
|
//#define LVER_PRODUCTVERSION_MAJORMINOR2(x,y) L#x L"." L#y |
|
#define LVER_PRODUCTVERSION_MAJORMINOR1(x,y) LVER_PRODUCTVERSION_MAJORMINOR2(x, y) |
|
#define LVER_PRODUCTVERSION_STRING LVER_PRODUCTVERSION_MAJORMINOR1(VER_PRODUCTMAJORVERSION, VER_PRODUCTMINORVERSION) |
|
|
|
#define VER_PRODUCTVERSION VER_PRODUCTMAJORVERSION,VER_PRODUCTMINORVERSION,VER_PRODUCTBUILD,VER_PRODUCTBUILD_QFE |
|
|
|
|
|
|
|
/*--------------------------------------------------------------*/ |
|
/* this value is used by third party drivers build with the DDK */ |
|
/* and internally, to avoid version number conflicts. */ |
|
/*--------------------------------------------------------------*/ |
|
#define VER_DDK_PRODUCTVERSION 10,0 |
|
#define VER_DDK_PRODUCTVERSION_STR "10.0" |
|
|
|
#if (VER_PRODUCTBUILD < 10) |
|
#define VER_BPAD "000" |
|
#elif (VER_PRODUCTBUILD < 100) |
|
#define VER_BPAD "00" |
|
#elif (VER_PRODUCTBUILD < 1000) |
|
#define VER_BPAD "0" |
|
#else |
|
#define VER_BPAD |
|
#endif |
|
|
|
#if (VER_PRODUCTBUILD < 10) |
|
#define LVER_BPAD L"000" |
|
#elif (VER_PRODUCTBUILD < 100) |
|
#define LVER_BPAD L"00" |
|
#elif (VER_PRODUCTBUILD < 1000) |
|
#define LVER_BPAD L"0" |
|
#else |
|
#define LVER_BPAD |
|
#endif |
|
|
|
#define VER_PRODUCTVERSION_STR4(x) VER_PRODUCTVERSION_STRING "." VER_BPAD #x |
|
#define VER_PRODUCTVERSION_STR3(x) VER_PRODUCTVERSION_STR4(x) |
|
#define VER_PRODUCTVERSION_STR2(x,y) VER_PRODUCTVERSION_STRING "." VER_BPAD #x "." #y |
|
#define VER_PRODUCTVERSION_STR1(x,y) VER_PRODUCTVERSION_STR2(x, y) |
|
#define VER_PRODUCTVERSION_STR VER_PRODUCTVERSION_STR1(VER_PRODUCTBUILD, VER_PRODUCTBUILD_QFE) |
|
|
|
#if defined(_MSVC_TRADITIONAL) && _MSVC_TRADITIONAL |
|
#define LVER_PRODUCTVERSION_STR4(x) LVER_PRODUCTVERSION_STRING L"." LVER_BPAD L#x |
|
#else |
|
#define LVER_PRODUCTVERSION_STR4(x) LVER_PRODUCTVERSION_STRING L"." LVER_BPAD L## #x |
|
#endif |
|
#define LVER_PRODUCTVERSION_STR3(x) LVER_PRODUCTVERSION_STR4(x) |
|
#if defined(_MSVC_TRADITIONAL) && _MSVC_TRADITIONAL |
|
#define LVER_PRODUCTVERSION_STR2(x,y) LVER_PRODUCTVERSION_STRING L"." LVER_BPAD L#x L"." L#y |
|
#else |
|
#define LVER_PRODUCTVERSION_STR2(x,y) LVER_PRODUCTVERSION_STRING L"." LVER_BPAD L## #x L"." L## #y |
|
#endif |
|
|
|
#define LVER_PRODUCTVERSION_STR1(x,y) LVER_PRODUCTVERSION_STR2(x, y) |
|
#define LVER_PRODUCTVERSION_STR LVER_PRODUCTVERSION_STR1(VER_PRODUCTBUILD, VER_PRODUCTBUILD_QFE) |
|
|
|
#define VER_PRODUCTVERSION_STRING_TWO_PARTS VER_PRODUCTVERSION_STRING |
|
#define VER_PRODUCTVERSION_STRING_THREE_PARTS VER_PRODUCTVERSION_STR3(VER_PRODUCTBUILD) |
|
#define VER_PRODUCTVERSION_STRING_FOUR_PARTS VER_PRODUCTVERSION_STR |
|
|
|
#define LVER_PRODUCTVERSION_STRING_TWO_PARTS LVER_PRODUCTVERSION_STRING |
|
#define LVER_PRODUCTVERSION_STRING_THREE_PARTS LVER_PRODUCTVERSION_STR3(VER_PRODUCTBUILD) |
|
#define LVER_PRODUCTVERSION_STRING_FOUR_PARTS LVER_PRODUCTVERSION_STR |
|
|
|
/*--------------------------------------------------------------*/ |
|
/* the following section defines values used in the version */ |
|
/* data structure for all files, and which do not change. */ |
|
/*--------------------------------------------------------------*/ |
|
|
|
/* default is nodebug */ |
|
#if DBG |
|
#define VER_DEBUG VS_FF_DEBUG |
|
#else |
|
#define VER_DEBUG 0 |
|
#endif |
|
|
|
/* default is prerelease */ |
|
#if BETA |
|
#define VER_PRERELEASE VS_FF_PRERELEASE |
|
#else |
|
#define VER_PRERELEASE 0 |
|
#endif |
|
|
|
#if OFFICIAL_BUILD |
|
#define VER_PRIVATE 0 |
|
#else |
|
#define VER_PRIVATE VS_FF_PRIVATEBUILD |
|
#endif |
|
|
|
#define VER_FILEFLAGSMASK VS_FFI_FILEFLAGSMASK |
|
#define VER_FILEOS VOS_NT_WINDOWS32 |
|
#define VER_FILEFLAGS (VER_PRERELEASE|VER_DEBUG|VER_PRIVATE) |
|
|
|
/*--------------------------------------------------------------*/ |
|
/* the following section defines values used in the version */ |
|
/* info for the kits */ |
|
/*--------------------------------------------------------------*/ |
|
|
|
#define VER_KITSCURVER L"Winv10.0" |
|
|
|
/*--------------------------------------------------------------*/ |
|
/* the following section defines values used to define legacy */ |
|
/* version info */ |
|
/*--------------------------------------------------------------*/ |
|
|
|
#define VER_PRODUCTMAJORVERSIONWIN81 6 |
|
#define VER_PRODUCTMINORVERSIONWIN81 3 |
|
|
|
#include "ntverp.ver" |