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.
 
 
 
 
 
 

108 lines
2.6 KiB

//
// Apps' rc files should look like this:
//
/**
#include "windows.h"
#include "ntverp.h"
#define VER_FILEDESCRIPTION_STR "File Description"
#define VER_INTERNALNAME_STR "Internal Name"
#define VER_ORIGINALFILENAME_STR "Original Name"
#define VER_FILETYPE VFT_DLL
#include "iisver.h"
#include "common.ver"
**/
//
// Apps may also define, in the same place as the other defines, above:
// VER_FILESUBTYPE
// VER_IISPRODUCTNAME_STR
// VER_IISMAJORVERSION
// VER_IISMINORVERSION
// VER_IISPRODUCTVERSION_STR
// VER_IISPRODUCTVERSION
// VER_IISPRODUCTBUILD
//
#ifndef VER_FILEDESCRIPTION_STR
#define VER_FILEDESCRIPTION_STR "IIS Executable"
#endif
#ifndef VER_INTERNALNAME_STR
#define VER_INTERNALNAME_STR "IISFile.exe"
#endif
#ifndef VER_ORIGINALFILENAME_STR
#define VER_ORIGINALFILENAME_STR VER_INTERNALNAME_STR
#endif
#ifdef VER_PRODUCTNAME_STR
#undef VER_PRODUCTNAME_STR
#endif
#ifndef VER_IISPRODUCTNAME_STR
#define VER_IISPRODUCTNAME_STR "Internet Information Services"
#endif
#define VER_PRODUCTNAME_STR VER_IISPRODUCTNAME_STR
#ifndef VER_IISMAJORVERSION
#if _IIS_5_1
#define VER_IISMAJORVERSION 5
#else
#define VER_IISMAJORVERSION 6
#endif
#endif
#ifndef VER_IISMINORVERSION
#if _IIS_5_1
#define VER_IISMINORVERSION 1
#else
#define VER_IISMINORVERSION 0
#endif
#endif
#ifdef VER_PRODUCTVERSION_STR
#undef VER_PRODUCTVERSION_STR
#endif
#define VER_IISPRODUCTVERSION_STRING VER_PRODUCTVERSION_MAJORMINOR1(VER_IISMAJORVERSION, VER_IISMINORVERSION)
#define VER_IISPRODUCTVERSION_STR2(x,y) VER_IISPRODUCTVERSION_STRING "." VER_BPAD #x "." #y
#define VER_IISPRODUCTVERSION_STR1(x,y) VER_IISPRODUCTVERSION_STR2(x, y)
#define VER_PRODUCTVERSION_STR VER_IISPRODUCTVERSION_STR1(VER_PRODUCTBUILD, VER_PRODUCTBUILD_QFE)
//
// VER_PRODUCTBUILD is defined by ntverp.h as the nt build number
//
#ifndef VER_PRODUCTBUILD
#define VER_PRODUCTBUILD 0984
#endif
#ifndef VER_IISPRODUCTBUILD
#define VER_IISPRODUCTBUILD VER_PRODUCTBUILD
#endif
#ifdef VER_PRODUCTVERSION
#undef VER_PRODUCTVERSION
#endif
#ifndef VER_IISPRODUCTVERSION
#define VER_IISPRODUCTVERSION VER_IISMAJORVERSION,VER_IISMINORVERSION,VER_IISPRODUCTBUILD,VER_PRODUCTBUILD_QFE
#endif
#define VER_PRODUCTVERSION VER_IISPRODUCTVERSION
#ifndef VER_FILEVERSION
#define VER_FILEVERSION VER_PRODUCTVERSION
#endif
#ifndef VER_FILETYPE
#define VER_FILETYPE VFT_DLL
#endif
#ifndef VER_FILESUBTYPE
#define VER_FILESUBTYPE VFT2_UNKNOWN
#endif