87 lines
2.5 KiB
Plaintext
87 lines
2.5 KiB
Plaintext
|
/* verinfo.rc
|
||
|
*
|
||
|
* To include version information in an application or DLL, you need to
|
||
|
* #include <verinfo.rc> in your .rc file. Example for an application:
|
||
|
*
|
||
|
* #include <windows.h>
|
||
|
* ...
|
||
|
* #define VERSIONNAME "myapp.exe\0"
|
||
|
* #define VERSIONDESCRIPTION "My Application's Full Name\0"
|
||
|
* #define VERSIONTYPE VFT_APP
|
||
|
* #define VERSIONSUBTYPE VFT2_UNKNOWN
|
||
|
* #include <verinfo.rc>
|
||
|
* ...
|
||
|
*
|
||
|
* Example for a DLL:
|
||
|
*
|
||
|
* #include <windows.h>
|
||
|
* ...
|
||
|
* #define VERSIONNAME "mylib.dll\0"
|
||
|
* #define VERSIONDESCRIPTION "My Library's Full Name\0"
|
||
|
* #define VERSIONTYPE VFT_DLL
|
||
|
* #define VERSIONSUBTYPE VFT2_UNKNOWN
|
||
|
* #include <verinfo.rc>
|
||
|
* ...
|
||
|
*
|
||
|
* Also, it's important that you pass the -DDEBUG flag to RC when RC is
|
||
|
* compiling a .rc file during a debug build. (All builds are debug by
|
||
|
* default, unless DEBUG=NO is specified explicitly on the nmake command
|
||
|
* line.)
|
||
|
*
|
||
|
* History: This file comes from MMSYSTEM.DLL (see ToddLa).
|
||
|
*/
|
||
|
|
||
|
#ifdef _NT
|
||
|
#include <winver.h>
|
||
|
#else
|
||
|
#include <ver.h>
|
||
|
#endif // _NT
|
||
|
|
||
|
// Use the file inc\verinfo.h to set the version number,
|
||
|
// revision number, and release (build) number
|
||
|
|
||
|
#include <verinfo.h>
|
||
|
|
||
|
#define VERSION rmj
|
||
|
#define REVISION rmm
|
||
|
#define RELEASE rup
|
||
|
#define APPTYPE rap
|
||
|
|
||
|
|
||
|
VS_VERSION_INFO VERSIONINFO
|
||
|
|
||
|
FILEVERSION VERSION,REVISION, APPTYPE, RELEASE
|
||
|
PRODUCTVERSION VERSION,REVISION, APPTYPE, RELEASE
|
||
|
FILEFLAGSMASK 0x0000003FL
|
||
|
FILEFLAGS VERSIONFLAGS
|
||
|
#ifdef _NT
|
||
|
FILEOS VOS_NT_WINDOWS32
|
||
|
#else
|
||
|
FILEOS VOS__WINDOWS16
|
||
|
#endif
|
||
|
|
||
|
FILETYPE VERSIONTYPE
|
||
|
FILESUBTYPE VERSIONSUBTYPE
|
||
|
BEGIN
|
||
|
BLOCK "StringFileInfo"
|
||
|
BEGIN
|
||
|
BLOCK "040904E4"
|
||
|
BEGIN
|
||
|
VALUE "CompanyName", "Microsoft Corporation\0"
|
||
|
VALUE "FileDescription", VERSIONDESCRIPTION
|
||
|
VALUE "FileVersion", VERSIONSTR
|
||
|
VALUE "InternalName", VERSIONNAME
|
||
|
VALUE "LegalCopyright", "Copyright \251 1996-1997 Microsoft Corp. All rights reserved. \0"
|
||
|
VALUE "LegalTrademarks", "Windows(TM) is a trademark of Microsoft Corporation. \0"
|
||
|
VALUE "OriginalFilename", VERSIONNAME
|
||
|
VALUE "ProductName", "Microsoft Information Technology\0"
|
||
|
VALUE "ProductVersion", VERSIONSTR
|
||
|
END
|
||
|
END
|
||
|
|
||
|
BLOCK "VarFileInfo"
|
||
|
BEGIN
|
||
|
VALUE "Translation", 0x409, 1252
|
||
|
END
|
||
|
END
|