I am trying to install driver using Install DDK sample.
After calling SetupDiCreateDeviceInfo I can see Registry entry created in
Enum\Root.
Following call
if (!SetupDiCallClassInstaller(DIF_REGISTERDEVICE,
DeviceInfoSet,
&DeviceInfoData))
{
failed with error:
(this inforamtion from setupapi.log file)
#-166 Device install function: DIF_REGISTERDEVICE.
#E157 Default installer failed. Error 0xe000020b: The device instance does
not exist in the hardware tree.
What does it mean? As far as I understand SetupDiCallClassInstaller()
registers device with PnP Manager and creates device instance.
Thank you
Leonid