I'm trying to develop a driver using Visual Studio 2012, which automatically integrates with WDK.
When I try to build my driver, I receive an error message from Inf2Cat app. It says:
Errors: 2> 22.9.7: DriverVer set to incorrect date (postdated DriverVer not allowed) in \ntleg.inf. The current date (UTC) is 1/3/2013.
In my NTLeg.inf I have:
[Version]
Signature="$WINDOWS NT$"
Class=
ClassGuid=
Provider=
DriverVer=
CatalogFile=NTLeg.cat
So, DriverVerProperty is empty. I tried to fill it with any value, but Inf2Cat reports the same error. I tried to fill it with current, past and future date, the same result. What should I do?
I tried samples provided with WDK and the all are reporting this error.
When using StampInf to automatically populate DriverVer it uses local time not GMT, but Inf2Cat defaults to verifying in GMT (UTC). See Microsoft comments and suggestions in StampInf documentation http://msdn.microsoft.com/en-us/library/windows/hardware/ff552789(v=vs.85).aspx
Easiest fix is to change your driver package project settings for Inf2Cat to set /uselocaltime
. Then the problem goes away!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With