Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Int2Cat - DriverVer set to incorrect date

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.

like image 223
Xanx Avatar asked Jan 03 '13 22:01

Xanx


1 Answers

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!

like image 179
James Butler Avatar answered Sep 28 '22 09:09

James Butler