inf文件校验工具InfVerif
2022-09-16
147
0
InfVerif.exe用于校验INF文件是否正确
InfVerif 要求每个组合的路径和文件名必须少于 260 个字符。
语法:
USAGE: InfVerif.exe [/v] [/u | /universal] [/w] [/k] [/info] [/stampinf] [/l <path>]
[/osver TargetOSVersion>] [/product <ias file>] <files>
/v
Display verbose file logging details.
/k
Reports errors for Hardware Dev Center submission. (mode; checks error codes 1100-1299)
/u
Reports errors if INF is not Universal. (mode)
/w
Reports Windows Driver compatibility. See below. (mode)
/info
Displays INF summary information.
/stampinf
Treat $ARCH$ as a valid architecture, to validate
pre-stampinf files.
/l <path>
An inline-annotated HTML version of each INF
file will be placed in the <path>.
/osver <TargetOsVersion>
Process the INF for a specific target OS.
Formatting is the same as a Models section, i.e. NTAMD64.6.0
Matches the TargetOSVersion you would use in a Models section name (see link below)
/product <ias file>
Validates all include/needs directives against
the product definition in the ias file.
/recurse
Process INF files that match the specified file pattern in the current directory and all subdirectories.
<files>
A space-separated list of INF files to analyze.
Wildcards (*) may be used.
Only one mode option may be passed at a time.
使用方法:
infverif.exe /w test1.inf test2.inf
infverif.exe /w test*.inf
错误信息可参见:https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/inf-validation-errors-and-warnings
InfVerify官方说明:https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/running-infverif-from-the-command-line