Driver Load Issues in Windows 11 HLK INF Verification: Error with AddReg Operation
Hello everyone I'm using Infverif.exe tool from WDK 10.0.22621 to verify my INF file.
Command used to execute is infverif.exe /u "absolute inf file path".
For INF AddReg directive section i have created the entries as follows.
HKLM, %SmartCardName%
HKLM, %SmartCardName%,"ValueName1",0x00000001,"ValueData1"
HKLM, %SmartCardName%,"ValueName2",0x00000001,"ValueData2"
and when I validate the file using infverif.exe tool it reports error code "1304" saying "Registry root of value 'ValueName1' is not isolated to HKR".
Referred to the error code description link https://learn.microsoft.com/en-us/windows-hardware/drivers/devtest/inf-validation-errors-and-warnings and found the error can be solve by replacing the non-relative registry root value with a relative registry root value which is replacing by HKLM to HKR.
After replacing as above the infverif.exe pass the validation of INF file which is good to be.
but the driver enumeration fails by not creating those particular registry entries anymore.
Which lead to failure in complete automatic loading of the driver.
Help me figure out how to ensure my registry entries are created when the driver loads.
Windows 11 24H2 Build 26100