Hints on switchind drivers for a PnP device

Hi all.

I’m looking into a solution to switch the driver for a PnP device.
Basically the PCI device has a normal driver (in the net class) and another
custom driver (a generic generic into a custom class, let’s say the “genpci”
ddk sample). I cannot easily touch the network driver sources to integrate
everything into a single driver.

I was thinking of

  1. uninstalling the card(s) (like “devcon remove”, or “uninstall” in the
    device manager)
  2. removing the existing driver and installing the other one
  3. forcing a rescan of the pnp devices to re-detect the cards and load the
    other driver.

Is this solution feasible? I’m not too used to devcon and the manual
installation of drivers for pnp devices :frowning: (I almost always worked with
software only network drivers and simple inf’s for pci devices).

Any pointer is greatly appreciated

Have a nice day
GV