Re: two devices, one driver?

Do you have 2 different SC database entries for the same .sys file, or 1 same for both? The first _does not work_. At all. It produces all kinds...
Re: two devices, one driver?
Do you have 2 different SC database entries for the same .sys file, or 1 same for both?

The first _does not work_. At all. It produces all kinds of bugs, including BSODs on some earlier Windows (XP?) if DriverEntry of the second instance fails.

Use the second way. So, the SC database entry key name must be the same in both INFs, just the device IDs must be different.


Maxim S. Shatskih
Windows DDK MVP

http://www.storagecraft.com

"Tim Newsham" <> wrote in message news:ff48c30c-eba1-4df6-a369-…
>I would like to write a driver that supports two different but related
> devices with the same code. I would like both drivers to have
> different INF files, but reference the same driver.sys file. Is this
> possible? I’ve tried so far but am getting an error loading the
> second driver:
>
> – first driver loads (I start it with devcon)
> – the second device appears on the bus at some point (first driver
> is a bus driver)
> – the "found new hardware" wizard comes up, asks for an INF file, I
> provide it
> – the install completes but the device shows up with an error in the
> device manager:
> "Windows cannot load the device driver for this hardware because a
> previous instance of the device driver is still in memory."
>
> I’m assuming its complaining because the first driver already loaded
> the .sys file into memory.
>
> -TimN

We will be happy to hear your thoughts

Leave a reply

TechEggs
Logo