InfVerif (InfVerif.exe) 是一(yi)種工具,可用于測試的驅動程(cheng)序(xu) INF 文(wen)件(jian)。 除了報(bao)告 INF 語法(fa)問題,該(gai)工具將報(bao)告 INF 文(wen)件(jian)是否通用。
備注: InfVerif 將替代 ChkINF 工具。
當您(nin)(nin)使用(yong)Windows驅動(dong)(dong)程序(xu)套件(WDK)10在(zai)Microsoft Visual Studio 2017中構(gou)建驅動(dong)(dong)程序(xu)時,編譯器(qi)會在(zai)構(gou)建過程中自動(dong)(dong)運行(xing)該(gai)工具。或者,您(nin)(nin)可以(yi)從命令行(xing)運行(xing)InfVerif.exe工具。
驗證(zheng)工具是WDK 10安裝(zhuang)的(de)一部分,可以在WDK 10安裝(zhuang)的(de) tools子目錄(lu)中找(zhao)到:c:Program Files(x86)Windows Kits ools.
InfVerif 工(gong)具(ju)將報告以下類(lei)型(xing)的錯誤/警告:
錯誤/警告(gao)(1200-1299):這些問題(ti)不會阻止您安裝驅動(dong)程序包,但(dan)確實(shi)表明在安裝驅動(dong)程序時(shi)未執行INF的(de)特定行。
使INF不(bu)通(tong)用的問題。(1300-1309)
警(jing)告(2000-2999):這(zhe)些問題始(shi)終(zhong)被報(bao)告為警(jing)告。
本部分中的內容
主題 | 描(miao)述 |
從命令(ling)行運行 InfVerif | 本主題列(lie)出了從命(ming)令行運行 InfVerif.exe 時可(ke)用的(de)選項(xiang)。 |
INF 驗證(zheng)錯(cuo)誤(wu)和警告 | 本(ben)主題介紹驅動程序安裝錯誤和警(jing)告可以顯示作為自動 INF 驗(yan)證結果,Visual Studio 的執(zhi)行,或 InfVerif 工具的運行時。 |
從命令(ling)行(xing)運行(xing) InfVerif
本(ben)主題列出了從命(ming)令行運行 InfVerif.exe 時可(ke)用(yong)的(de)選項。
備(bei)注
InfVerif 要求每個組合的路徑和文件名稱必須少于 260 個字符。
復(fu)制
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.
有(you)關的示(shi)例(li)TargetOSVersion格式(shi)設置,請參閱備(bei)注部分中(zhong)的INF 制(zhi)造商部分。
使用(yong)詳細選項(xiang)指定 INF 或不是有效的輸出中添(tian)加一行。 某(mou)些參(can)數標記為(wei)模式,其中應(ying)傳遞唯一。
新建適(shi)(shi)用(yong)(yong)于 Windows 10,版本 1703年(nian): 信息選項是特別(bie)有用(yong)(yong),若要驗(yan)(yan)證(zheng) INF 適(shi)(shi)用(yong)(yong)性(xing)。 它將報(bao)告以及有效的(de)體(ti)系(xi)結構(gou)(gou)和最(zui)低操作系(xi)統版本的(de)每(mei)個受(shou)支(zhi)持的(de)硬件 ID。 可用(yong)(yong)于 /info 和 /osver 一起跨 OS 版本和體(ti)系(xi)結構(gou)(gou)驗(yan)(yan)證(zheng) INF 的(de)適(shi)(shi)用(yong)(yong)性(xing)。
您(nin)可以通過我們的(de)電話(hua),郵箱(xiang),QQ或者微信(xin)進行咨詢并獲取幫助。