home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / sdktools / winnt / netwatch / common.ver next >
Text File  |  1996-01-07  |  4KB  |  107 lines

  1.  
  2. /*---------------------------------------------------------------*/
  3. /*                                                               */
  4. /* The following section actually creates the version structure. */
  5. /* They are ignored if we are not being invoked by RC.           */
  6. /*                                 */
  7. /* VERSION.H must be included before including this file     */
  8. /*                                                               */
  9. /* If VER_LEGALCOPYRIGHT_STR is not defined, it will be         */
  10. /* constructed using VER_LEGALCOPYRIGHT_YEARS, so at least one     */
  11. /* these macros must be defined before including this file.     */
  12. /*                                 */
  13. /* VER_FILETYPE, VER_FILESUBTYPE, VER_FILEDESCRIPTION_STR, and     */
  14. /* VER_INTERNALNAME_STR must be defined before including this     */
  15. /* file.                             */
  16. /*                                 */
  17. /* If VER_FILEVERSION is not defined, VER_PRODUCTVERSION will be */
  18. /* used instead.  If VER_FILEVERSION_STR is not defined,     */
  19. /* VER_PRODUCTVERSION_STR will be used instead.             */
  20. /*                                 */
  21. /* If VER_ORIGINALFILENAME_STR is not defined, it is set to      */
  22. /* the NULL string.                                         */
  23. /*                                 */
  24. /* If INTL is defined, then this is assumed to be an         */
  25. /* an international build; two string blocks will be created,     */
  26. /* (since all version resources must have English), and the     */
  27. /* second one can be localized                     */
  28. /*                                 */
  29. /*---------------------------------------------------------------*/
  30.  
  31. #ifdef RC_INVOKED
  32.  
  33. #ifndef VER_LEGALCOPYRIGHT_STR
  34. #define VER_LEGALCOPYRIGHT_STR "Copyright \251 Microsoft Corp. ", VER_LEGALCOPYRIGHT_YEARS, "\0"
  35. #endif
  36.  
  37. #ifndef VER_FILEVERSION
  38. #define VER_FILEVERSION VER_PRODUCTVERSION
  39. #endif
  40.  
  41. #ifndef VER_FILEVERSION_STR
  42. #define VER_FILEVERSION_STR VER_PRODUCTVERSION_STR
  43. #endif
  44.  
  45. #ifndef VER_ORIGINALFILENAME_STR
  46. #define VER_ORIGINALFILENAME_STR "\0"
  47. #endif
  48.  
  49. VS_VERSION_INFO VERSIONINFO 
  50. FILEVERSION    VER_FILEVERSION
  51. PRODUCTVERSION VER_PRODUCTVERSION
  52. FILEFLAGSMASK  VER_FILEFLAGSMASK
  53. FILEFLAGS      VER_FILEFLAGS
  54. FILEOS         VER_FILEOS
  55. FILETYPE       VER_FILETYPE
  56. FILESUBTYPE    VER_FILESUBTYPE
  57. BEGIN
  58.     BLOCK "StringFileInfo"
  59.     BEGIN
  60.         BLOCK "040904E4"
  61.         BEGIN 
  62.             VALUE "CompanyName",     VER_COMPANYNAME_STR, "\0"
  63.             VALUE "FileDescription", VER_FILEDESCRIPTION_STR, "\0"
  64.             VALUE "FileVersion",     VER_FILEVERSION_STR, "\0"
  65.             VALUE "InternalName",    VER_INTERNALNAME_STR, "\0"
  66.             VALUE "LegalCopyright",  VER_LEGALCOPYRIGHT_STR, "\0"
  67.             VALUE "OriginalFilename",VER_ORIGINALFILENAME_STR, "\0"
  68.             VALUE "ProductName",     VER_PRODUCTNAME_STR, "\0"
  69.             VALUE "ProductVersion",  VER_PRODUCTVERSION_STR, "\0"
  70.         END 
  71.         /* JAPAN */
  72.         BLOCK "041104E4"
  73.         BEGIN
  74.             VALUE "CompanyName",     VER_COMPANYNAME_STR, "\0"
  75.             VALUE "FileDescription", VER_FILEDESCRIPTION_STR, "\0"
  76.             VALUE "FileVersion",     VER_FILEVERSION_STR, "\0"
  77.             VALUE "InternalName",    VER_INTERNALNAME_STR, "\0"
  78.             VALUE "LegalCopyright",  VER_LEGALCOPYRIGHT_STR, "\0"
  79.             VALUE "OriginalFilename",VER_ORIGINALFILENAME_STR, "\0"
  80.             VALUE "ProductName",     VER_PRODUCTNAME_STR, "\0"
  81.             VALUE "ProductVersion",  VER_PRODUCTVERSION_STR, "\0"
  82.         END
  83.  
  84. #ifdef INTL
  85.         BLOCK "040904E4"
  86.         BEGIN 
  87.             VALUE "CompanyName",     VER_COMPANYNAME_STR, "\0"
  88.             VALUE "FileDescription", VER_FILEDESCRIPTION_STR, "\0"
  89.             VALUE "FileVersion",     VER_FILEVERSION_STR, "\0"
  90.             VALUE "InternalName",    VER_INTERNALNAME_STR, "\0"
  91.             VALUE "LegalCopyright",  VER_LEGALCOPYRIGHT_STR, "\0"
  92.             VALUE "OriginalFilename",VER_ORIGINALFILENAME_STR, "\0"
  93.             VALUE "ProductName",     VER_PRODUCTNAME_STR, "\0"
  94.             VALUE "ProductVersion",  VER_PRODUCTVERSION_STR, "\0"
  95.         END 
  96. #endif
  97.     END 
  98.  
  99.     BLOCK "VarFileInfo" 
  100.     BEGIN 
  101.         /* the following line should be extended for localized versions */
  102.         VALUE "Translation", 0x0409, 0x04E4, 0x0411, 0x04E4
  103.     END 
  104. END 
  105.  
  106. #endif
  107.