InfVerif (InfVerif.exe) 是一種工具,可用于測試的驅(qū)動程序 INF 文件。 除了報告 INF 語法問題,該工具將報告 INF 文件是否通用。
備注: InfVerif 將替代 ChkINF 工具。
當(dāng)您使用Windows驅(qū)動程序套件(WDK)10在Microsoft Visual Studio 2017中構(gòu)建驅(qū)動程序時,編譯器會在構(gòu)建過程中自動運(yùn)行該工具。或者,您可以從命令行運(yùn)行InfVerif.exe工具。
驗(yàn)證工具是WDK 10安裝的一部分,可以在WDK 10安裝的 tools子目錄中找到:c:Program Files(x86)Windows Kits ools.
InfVerif 工具將報告以下類型的錯誤/警告:
錯誤/警告(1200-1299):這些問題不會阻止您安裝驅(qū)動程序包,但確實(shí)表明在安裝驅(qū)動程序時未執(zhí)行INF的特定行。
使INF不通用的問題。(1300-1309)
警告(2000-2999):這些問題始終被報告為警告。
本部分中的內(nèi)容
主題 | 描述 |
從命令行運(yùn)行 InfVerif | 本主題列出了從命令行運(yùn)行 InfVerif.exe 時可用的選項(xiàng)。 |
INF 驗(yàn)證錯誤和警告 | 本主題介紹驅(qū)動程序安裝錯誤和警告可以顯示作為自動 INF 驗(yàn)證結(jié)果,Visual Studio 的執(zhí)行,或 InfVerif 工具的運(yùn)行時。 |
從命令行運(yùn)行 InfVerif
本主題列出了從命令行運(yùn)行 InfVerif.exe 時可用的選項(xiàng)。
備注
InfVerif 要求每個組合的路徑和文件名稱必須少于 260 個字符。
復(fù)制
USAGE: InfVerif.exe [/v] [/u | /universal] [/k] [/info] [/stampinf] [/l <path>] [/osver TargetOSVersion>] [/product <ias file>] <files> /v Display verbose file logging details. /k Reports errors for Windows Update submission. (mode) /u Reports errors if INF is not Universal. (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. <files> A space-separated list of INF files to analyze. Wildcards (*) may be used. Only one mode option may be passed at a time.
有關(guān)的示例TargetOSVersion格式設(shè)置,請參閱備注部分中的INF 制造商部分。
使用詳細(xì)選項(xiàng)指定 INF 或不是有效的輸出中添加一行。 某些參數(shù)標(biāo)記為模式,其中應(yīng)傳遞唯一。
新建適用于 Windows 10,版本 1703年: 信息選項(xiàng)是特別有用,若要驗(yàn)證 INF 適用性。 它將報告以及有效的體系結(jié)構(gòu)和最低操作系統(tǒng)版本的每個受支持的硬件 ID。 可用于 /info 和 /osver 一起跨 OS 版本和體系結(jié)構(gòu)驗(yàn)證 INF 的適用性。
您可以通過我們的電話,郵箱,QQ或者微信進(jìn)行咨詢并獲取幫助。