см. примерчики в ДДК. например, parport.rc
Ну вот примерчик, если захочешь отвязаться от common.ver
#include "shared-ver.h"
#define VER_FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
#define VER_FILEOS VOS_NT_WINDOWS32
#define VER_FILEDESCRIPTION_STR "My driver"
#define VER_INTERNALNAME_STR "mydriver.sys"
#define VER_ORIGINALFILENAME_STR "mydriver.sys"
#define VER_PRODUCTNAME_STR "super device Driver"
#define VER_LEGALCOPYRIGHT_STR ")C: Me. All rights reserved." // Please do not use "©", it clashes with some Asian characters.
#define VER_FILEVERSION MY_VER_PRODUCTVERSION //from shared-ver.h
#define VER_FILEVERSION_STR MY_VERSION_MS_STRING_NT5 //ditto
#define VER_FILETYPE VFT_DRV
#define VER_FILESUBTYPE VFT2_DRV_SYSTEM
#ifdef RC_INVOKED
VS_VERSION_INFO VERSIONINFO
FILEVERSION VER_FILEVERSION
PRODUCTVERSION VER_PRODUCTVERSION
FILEFLAGSMASK VER_FILEFLAGSMASK
FILEFLAGS VER_FILEFLAGS
FILEOS VER_FILEOS
FILETYPE VER_FILETYPE
FILESUBTYPE VER_FILESUBTYPE
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904B0" /* LANG_ENGLISH/SUBLANG_ENGLISH_US, Unicode CP - calc your own, when needed */
BEGIN
VALUE "CompanyName", VER_COMPANYNAME_STR
VALUE "FileDescription", VER_FILEDESCRIPTION_STR
VALUE "FileVersion", VER_FILEVERSION_STR
VALUE "InternalName", VER_INTERNALNAME_STR
VALUE "LegalCopyright", VER_LEGALCOPYRIGHT_STR
VALUE "OriginalFilename",VER_ORIGINALFILENAME_STR
VALUE "ProductName", VER_PRODUCTNAME_STR
VALUE "ProductVersion", VER_PRODUCTVERSION_STR
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0409, 0x04B0
END
END