WDM driver can't be installed in win2019 with error 0x80070002

Nan Yang 1 Reputation point

Our product has a WDM driver for several years, it works well for all previous window version, but recently we need to upgrade to window 2019 which already opened the test mode, the setup API always failed with error message "A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider."
We found it eventually copied the inf file to C:\Windows\System32\DriverStore folder and the driver binary to C:\Windows\System32\drivers folder after calling SetupCopyOEMInf(), but when call the INetCfgClassSetup->install method, the driver service was not created, it just return 0x80070002, however,we can create the service manually by sc create binPath="C:\Windows\System32\drivers<drivername>.sys" type=kernel,and it could start well.
Not sure why this happened, no log or event trace could be watched, do you have any idea?

Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,503 questions
{count} votes