Hello Everyone,
I am trying to return a error value from PnPAddDevice routine of my PCI
Device driver for the system to not load the driver for that particular
device. I am trying with STATUS_NOT_SUPPORTED.
I see that the AddDevice keeps getting called.
The background for this trial is as follows:
My driver is a PnP Driver and there is a legacy driver available for the
same PCI device with different functionality.
The system has 10 similar PCI devices and I want to load my driver only on
two of them. I am using the PCI three-tuples BUS-DEVICE-FUNCTION for
choosing my devices.
But, for automatic installation we have to use the PCI VendorID and Device
ID which is same for all the 10 PCI devices. If I try automatic
installation, the system tries to load my driver for all the 10 PCI devices.
So, I check for specific BUS-DEVICE-FUNCTION in my AddDevice and return
STATUS_NOT_SUPPORTED. I expect the system to ignore my driver and allow the
legacy driver to use the device. But, it does not seem to happen and my
AddDevice keeps getting called.
Is there any specific STATUS_* value I have to return from AddDevice to
achieve what I want? Please let me know the value or point me to the place
where I can get it from.
Thanks in advance for the big help from all of you
Best Regards,
Raj