The English sentence was wrong, so I will rewrite it again.
---------------------------------------------------------------------
Our Windows driver is a UMDF2.15 driver that outputs event logs.
Previously, HKLM was used to register the event log message files in the registry.
[CoInstallers_AddReg]
HKLM,%EventLogKey%\MyDriverName,EventMessageFile,0x00020000,"%%SystemRoot%%\system32\drivers\UMDF\MyDriver.dll"
[Strings]
EventLogKey="SYSTEM\CurrentControlSet\Services\EventLog\Application"
We need to do the HLK tests and get the WHQL signature, but if you look at the documentation on InfVerif.exe for the/h option (WHQL requirement) that was introduced in Windows11 24H2, it says that HKLM: SYSTEM\CurrentControlSet is currently an exception but should not be used because it will not be available in a future release. It also says to modify the registry using the HKR and AddReg directives.
https://learn.microsoft.com/en-us/windows-hardware/drivers/devtest/infverif_h
In the DDInstallServices section, it seems to be possible to register an Eventlog message file using HKR with the AddService directive, but my driver is a UMDF2.5 driver and I have to include the reflector inf. There is no AddService directive, how do I define it?
[DDInstall.Services]
AddService=ServiceName,flags,service-install-section,event-log-install-section,Application,EventName
[event-log-install-section]
AddReg=drivername_EventLog_AddReg
[drivername_EventLog_AddReg]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\system32\drivers\Mydriver.dll"
HKR,,TypeSupported,0x00010001,7
------------------------------------
[DDInstall.Services]
Include=WUDFRD.inf
Needs=WUDFRD.NT.Services
<<INF AddReg directive>>
https://learn.microsoft.com/en-us/windows-hardware/drivers/install/inf-addreg-directive
<<INF AddService directive>>
https://learn.microsoft.com/en-us/windows-hardware/drivers/install/inf-addservice-directive
<<Specifying the Reflector in an INF File>>
https://learn.microsoft.com/en-us/windows-hardware/drivers/wdf/adding-the-reflector