Trying to pass the Windows HLK
INF
verification test on Windows 11 24H2 26100
Build.
I have been using the Windows kits tool InfVerif.exe to validate my inf file and execute
infverif.exe /u
“absolute inf file path”
The INF AddReg directive section, entries have been created as follows:
HKLM, %SmartCardName%HKLM, %SmartCardName%,"ValueName1",0x00000001,"ValueData1"HKLM, %SmartCardName%,"ValueName2",0x00000001,"ValueData2"
Upon validation with the infverif.exe tool, an error code “1304
” is reported: Found legacy AddReg operation using a non-relative key.
After changing the non-relative key to a relative key (HKR), infverif.exe successfully passes the validation of the INF file. However, the driver’s automatic load fails, resulting in the particular registry entries not being created anymore.
The goal is to configure the INF file so that it passes validation and enables the driver to load automatically without issues when the HKLM is replaced with HKR.
Hanish Gopi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.