Source code of Windows XP (NT5)
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.

86 lines
2.5 KiB

  1. /* verinfo.rc
  2. *
  3. * To include version information in an application or DLL, you need to
  4. * #include <verinfo.rc> in your .rc file. Example for an application:
  5. *
  6. * #include <windows.h>
  7. * ...
  8. * #define VERSIONNAME "myapp.exe\0"
  9. * #define VERSIONDESCRIPTION "My Application's Full Name\0"
  10. * #define VERSIONTYPE VFT_APP
  11. * #define VERSIONSUBTYPE VFT2_UNKNOWN
  12. * #include <verinfo.rc>
  13. * ...
  14. *
  15. * Example for a DLL:
  16. *
  17. * #include <windows.h>
  18. * ...
  19. * #define VERSIONNAME "mylib.dll\0"
  20. * #define VERSIONDESCRIPTION "My Library's Full Name\0"
  21. * #define VERSIONTYPE VFT_DLL
  22. * #define VERSIONSUBTYPE VFT2_UNKNOWN
  23. * #include <verinfo.rc>
  24. * ...
  25. *
  26. * Also, it's important that you pass the -DDEBUG flag to RC when RC is
  27. * compiling a .rc file during a debug build. (All builds are debug by
  28. * default, unless DEBUG=NO is specified explicitly on the nmake command
  29. * line.)
  30. *
  31. * History: This file comes from MMSYSTEM.DLL (see ToddLa).
  32. */
  33. #ifdef _NT
  34. #include <winver.h>
  35. #else
  36. #include <ver.h>
  37. #endif // _NT
  38. // Use the file inc\verinfo.h to set the version number,
  39. // revision number, and release (build) number
  40. #include <verinfo.h>
  41. #define VERSION rmj
  42. #define REVISION rmm
  43. #define RELEASE rup
  44. #define APPTYPE rap
  45. VS_VERSION_INFO VERSIONINFO
  46. FILEVERSION VERSION,REVISION, APPTYPE, RELEASE
  47. PRODUCTVERSION VERSION,REVISION, APPTYPE, RELEASE
  48. FILEFLAGSMASK 0x0000003FL
  49. FILEFLAGS VERSIONFLAGS
  50. #ifdef _NT
  51. FILEOS VOS_NT_WINDOWS32
  52. #else
  53. FILEOS VOS__WINDOWS16
  54. #endif
  55. FILETYPE VERSIONTYPE
  56. FILESUBTYPE VERSIONSUBTYPE
  57. BEGIN
  58. BLOCK "StringFileInfo"
  59. BEGIN
  60. BLOCK "040904E4"
  61. BEGIN
  62. VALUE "CompanyName", "Microsoft Corporation\0"
  63. VALUE "FileDescription", VERSIONDESCRIPTION
  64. VALUE "FileVersion", VERSIONSTR
  65. VALUE "InternalName", VERSIONNAME
  66. VALUE "LegalCopyright", "Copyright \251 1996-1997 Microsoft Corp. All rights reserved. \0"
  67. VALUE "LegalTrademarks", "Windows(TM) is a trademark of Microsoft Corporation. \0"
  68. VALUE "OriginalFilename", VERSIONNAME
  69. VALUE "ProductName", "Microsoft Information Technology\0"
  70. VALUE "ProductVersion", VERSIONSTR
  71. END
  72. END
  73. BLOCK "VarFileInfo"
  74. BEGIN
  75. VALUE "Translation", 0x409, 1252
  76. END
  77. END