DriverVer in .inf replaced by 6.1.7600.16385 by build.exe?

Hi,

I try to build an existing driver on a new PC, Win7 64bit. WDK 6.1.7600.16385.

I have a similar problem than stated here:
http://www.osronline.com/showThread.cfm?link=172612

the .inf file that is created by build.exe from the .inx file always contains 6.1.7600.16385 as DriverVer. In fact it looks like that:
DriverVer=06/11/2012,6.1.7600.16385

I tried to add

#ifdef VER_PRODUCTVERSION
#undef VER_PRODUCTVERSION
#define VER_PRODUCTVERSION 6,00,01,001
#endif

#include “common.ver”

in my .rc file but this leads to
error RC2104 : undefined keyword or key name: VER_FILEFLAGSMASK

What is required so that the created .inf file contains the same DriverVer string that is in the .inx file? Or what is missing in order to be able to #include “common.ver”?

thanks,

Thomas

Hi,

I found the reason: it was a “stampinf” call in the makefile… This replaced the version number because an actual version number was missing at the call (parameter -v). It seems that stampinf uses the Win-DDK version in such a case.

bye,

Thomas