Installing a driver by it's Compatible ID

Has anyone ever done this on win2k or winxp?

I have to support two PCI devices that are identical in functionality but
differ in their PCI device Hardware ID. The device driver for these two
devices is involved in the booting of the system and therefore must be
available at boot time when the system is coming up. The compatible ID is
the same on both devices. So to highlight my problem in easier terms. The
one PCI device is being discontinued while the other PCI device is the
replacement part.

So if the user running a system with the discontinued part replaces it with
a system with the new part, then the user recieves a BSOD because the disk
image is installed with respect to the PCI device’s Hardware ID. Remember,
this is a boot time and PnP Manager hasn’t even started yet so searching for
the compatible ID hasn’t happen yet.

So I thought if I install the driver with respect to the Compatible ID, then
the system would not care
which device it was using and therefore no BSOD would occur. The problem I
have run into is that I cannot install my driver using the Compatible ID
because the ‘UpdateDriverForPlugAndPlayDevices’ function only takes a
HardwareId and not the Compatible ID as it’s parameter.

So back to my question. How do you install a driver by it’s compatible ID?
Is this even possible?

Thanks In Advance,
Joe


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com