InfVerif (InfVerif.exe) 是一種工具,可用于測試的驅動程序 INF 文件。 除了報告 INF 語法問題,該工具將報告 INF 文件是否通用。
備注: InfVerif 將替代 ChkINF 工具。
當您使用Windows驅動程序套件(WDK)10在Microsoft Visual Studio 2017中構建驅動程序時,編譯器會在構建過程中自動運行該工具。或者,您可以從命令行運行InfVerif.exe工具。
驗證工具是WDK 10安裝的一部分,可以在WDK 10安裝的 tools子目錄中找到:c:Program Files(x86)Windows Kits ools.
InfVerif 工具將報告以下類型的錯誤/警告:
錯誤/警告(1200-1299):這些問題不會阻止您安裝驅動程序包,但確實表明在安裝驅動程序時未執(zhí)行INF的特定行。
使INF不通用的問題。(1300-1309)
警告(2000-2999):這些問題始終被報告為警告。
本部分中的內容
主題 | 描述 |
從命令行運行 InfVerif | 本主題列出了從命令行運行 InfVerif.exe 時可用的選項。 |
INF 驗證錯誤和警告 | 本主題介紹驅動程序安裝錯誤和警告可以顯示作為自動 INF 驗證結果,Visual Studio 的執(zhí)行,或 InfVerif 工具的運行時。 |
從命令行運行 InfVerif
本主題列出了從命令行運行 InfVerif.exe 時可用的選項。
備注
InfVerif 要求每個組合的路徑和文件名稱必須少于 260 個字符。
復制
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.
有關的示例TargetOSVersion格式設置,請參閱備注部分中的INF 制造商部分。
使用詳細選項指定 INF 或不是有效的輸出中添加一行。 某些參數(shù)標記為模式,其中應傳遞唯一。
新建適用于 Windows 10,版本 1703年: 信息選項是特別有用,若要驗證 INF 適用性。 它將報告以及有效的體系結構和最低操作系統(tǒng)版本的每個受支持的硬件 ID。 可用于 /info 和 /osver 一起跨 OS 版本和體系結構驗證 INF 的適用性。
您可以通過我們的電話,郵箱,QQ或者微信進行咨詢并獲取幫助。