Sometimes EvtDeviceAdd gets called twice.

Greetings all,

I created a new KMDF project with sample in VS2019, and only update vendor ID and DEV ID in the inf file,
but I found that when I tried to deploy this driver, sometimes EvtDeviceAdd gets called twice,
I can find 2 devices in the device manager, in the Device Properties, one device has PCI location and Resources tab, when the other does not have.

why I have only one PCI device, but sometimes EvtDeviceAdd gets called twice?

You created a root enumerated device with devcon install. You probably misconfigured the deployment in VS

@Doron_Holan said:
You created a root enumerated device with devcon install. You probably misconfigured the deployment in VS

thank you very much, your suggestion helps a lot, it’s the problem with devcon install.