備註
InfVerif /h 是在 Windows 11 版本 24H2 中引入的。
InfVerif /h 是 InfVerif 的新模式,可使用一組 INF 需求進行驗證,這些需求會隨著每個版本而變更,以符合硬體開發人員中心 WHQL 簽章的需求。 隨著時間的推移,這些要求將變得更加嚴格,最終將與 驅動程式套件隔離 要求保持一致。
InfVerif /h 檢查 INF 可能安裝的所有 OS 版本,並自動使用該 OS 版本的適當規則來評估 INF。 例如,在使用 版本裝飾 來變更不同 OS 版本行為的 INF 檔案中:
Contoso = Models, NTAMD64, NTAMD64.10.0...22000
InfVerif /h 會在內部驗證此 INF 兩次,一次使用組建 21999 的規則驗證 [Models] 區段 [Models.NTAMD64], (將使用該 [Models] 區段的最高 OS 版本) ,以及一次驗證 [Models] 區段 [Models.NTAMD64.10.0...22000] 使用最新的規則集。 只有單一 [Models] 區段的 INF 檔案只會針對最新的規則集進行驗證。
用法
若要使用 InfVerif /h 預設行為:
infverif.exe /h <INF file> [<INF file>]
InfVerif /h 也可讓您使用 '/rulever' 引數指定 InfVerif 將使用的最高規則集,例如:
infverif.exe /h /rulever 10.0...17763 <INF file>
使用 '/rulever' 引數可能會導致忽略 INF 的某些部分。 利用上述論證與前一個範例,[Models] 區塊 [Models.NTAMD64] 將依據建譯 17763 的規則進行驗證,[Models.NTAMD64.10.0...22000] 不會被驗證,因為指定的規則集不適用於它。
新增詳細選項將導致 InfVerif 列印出評估期間使用的最大規則集:
infverif.exe /h /v <INF file>
Running in Verbose
Running signature requirements check
Using rules from OS build: 10.0.26080
infverif.exe /h /rulever 10.0...17763 <INF file>
Running in Verbose
Running signature requirements check
Using rules from OS build: 10.0.17763
InfVerif /h 也可以使用未來的規則集。 內建的「vnext」作業系統版本會使用預期未來某個作業系統版本必備的規則。 「vnext」執行的規則並非最終版本,可能會在最終版本中有所變動,但目的是提供對未來需求的良好了解。
infverif.exe /h /rulever vnext <INF file>
需求
規則 InfVerif /h 集符合 WHCP 計劃的要求。 需求定義為完整的 驅動程式套件隔離 需求,並套用一組例外狀況至需求。 每個版本都會移除一些例外狀況,直到強制執行所有驅動程式套件隔離需求為止 InfVerif /h 。
備註
以下列出的任何例外都不應使用,因為在即將推出的版本中將不再允許使用。
現行需求
登錄
INF 檔案不得修改任何全域登錄位置,而只能使用 HKR 登錄根目錄來修改或建立具有 AddReg 指示詞的登錄資訊。 下列路徑是此需求的目前例外狀況:
| 根 | 子鍵 | 例外已移除,從開始 |
|---|---|---|
| HKLM | SYSTEM\CurrentControlSet | Windows 11 25H2 版 |
| HKLM | 軟體\類別 | |
| HKLM | 軟體\Khronos | |
| HKLM | 軟體\Microsoft\類比\提供者 | |
| HKLM | SOFTWARE\Microsoft\Cellular\MVSettings\DeviceSpecific\CellUX | |
| HKLM | 軟體\Microsoft\密碼學\Calais\讀者 | |
| HKLM | 軟體\Microsoft\密碼學\加萊\智慧卡 | |
| HKLM | 軟體\Microsoft\密碼學\DRM_RNG | |
| HKLM | 軟體\Microsoft\EAPOL | |
| HKLM | SOFTWARE\Microsoft\Palm\DelayManipulationDuration | |
| HKLM | SOFTWARE\Microsoft\Shell\OEM\QuickActions\ColorProfileQuickAction | Windows 11 25H2 版 |
| HKLM | 軟體\Microsoft\Speech_OneCore\AudioInput | Windows 11 25H2 版 |
| HKLM | 軟體\Microsoft\Windows 媒體基金會 | |
| HKLM | SOFTWARE\Microsoft\Windows NT\CurrentVersion\AdaptiveDisplayBrightness | |
| HKLM | SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc | Windows 11 25H2 版 |
| HKLM | 軟體\Microsoft\Windows NT\CurrentVersion\Drivers32 | Windows 11 25H2 版 |
| HKLM | 軟體\Microsoft\Windows NT\CurrentVersion\ICM | Windows 11 25H2 版 |
| HKLM | SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGlDrivers | |
| HKLM | SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\ScCertProp | |
| HKLM | SOFTWARE\Microsoft\Windows\CurrentVersion\應用程式路徑 | |
| HKLM | 軟體\Microsoft\Windows\CurrentVersion\音訊 | Windows 11 25H2 版 |
| HKLM | 軟體\Microsoft\Windows\CurrentVersion\驗證 | |
| HKLM | SOFTWARE\Microsoft\Windows\CurrentVersion\控制面板 | |
| HKLM | SOFTWARE\Microsoft\Windows\CurrentVersion\Controls 資料夾 | |
| HKLM | 軟體\Microsoft\Windows\CurrentVersion\資源管理器 | |
| HKLM | SOFTWARE\Microsoft\Windows\CurrentVersion\Reliability\UserDefined | Windows 11 25H2 版 |
| HKLM | SOFTWARE\Microsoft\Windows\CurrentVersion\Run | |
| HKLM | SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce | |
| HKLM | SOFTWARE\Microsoft\Windows\CurrentVersion\卸載 | |
| HKLM | 軟體\Wow6432Node\Microsoft\Windows Media Foundation | |
| HKLM | 軟體\Wow6432Node\Khronos | |
| HKLM | 軟體\WowAA32Node\Microsoft\Windows Media Foundation | |
| HKLM | 軟體\WowAA32Node\Khronos | |
| 香港證券交易會 |
檔案路徑
DIRID 13 必須在 INF 中指定為 [DestinationDirs] 區段中所有專案的目的地位置。 下列值是此需求的例外狀況:
| DIRID 值 | 檔案根目錄 | 檔案子目錄路徑 | 例外已從 中移除 |
|---|---|---|---|
| 迪里德 10 | Windows 作業系統 | Provisioning | |
| 迪里德 10 | Windows 作業系統 | SyChpe32 | |
| 迪里德 10 | Windows 作業系統 | SysArm32 | |
| 迪里德 10 | Windows 作業系統 | TWAIN_32 | |
| 迪里德 10 | Windows 作業系統 | Twain_64 | |
| 迪里德 11 | Windows\System32 | ||
| 迪里德 12 | Windows\System32\drivers | ||
| 迪里德 23 | Windows\System32\spool\drivers\color | ||
| 迪里德 51 | Windows\System32\spool | ||
| 迪里德 52 | Windows\System32\spool\drivers... | ||
| 迪里德 55 | Windows\System32\spool\prtprocs... | ||
| 迪里德 16422 | 程序檔 | Windows 11 25H2 版 | |
| 迪里德 16425 | Windows\SysWOW64 | ||
| 迪里德 16426 | 程式檔案(x86) | Windows 11 25H2 版 | |
| 迪里德 16427 | 程式檔案\共用檔案 | Windows 11 25H2 版 | |
| 迪里德 16428 | 程式檔案(x86)\公用檔案 | Windows 11 25H2 版 | |
| 迪里德 66000 | Windows\System32\spool\drivers...\3 | ||
| 迪里德 66001 | Windows\System32\spool\prtprocs... | ||
| 迪里德 66002 | Windows 作業系統 | Windows 11 25H2 版 | |
| 迪里德 66003 | Windows\System32\spool\drivers\color | ||
| 迪里德 66004 | Windows\web\printers... |