Double-loading? .inf under XP

Dear All,

I found a problem with loading legacy .sys driver under XP.
This is PCI device driver which requires IRQ to work.

When I add this driver directly to the register as a service it works OK
(of cause, each time XP boots up it finds new PCI device :frowning:

When I add this driver by .inf file it appears twice in the Device Manager:

  1. Once as a service (takes ISA IRQ9)
    and
  2. as a device (takes PCI IRQx)

From the hardware side it looks like two ISR routines are installed for the same device.

Why do you think it might happen?

Questions:

  1. What’s the right way to write .inf file for XP? I haven’t found an example of .inf files
    for PCI devices which do not fall into predefined classes (for example telecom devices)

  2. I think to create some named non persistent object to avoid this double-loading.
    Certainly the best way is to access this object by name.
    What is the best way to do it?

Thanks in advance,
Alex

> When I add this driver directly to the register as a service it works OK

(of cause, each time XP boots up it finds new PCI device :frowning:

Yes, use this way for now.

When I add this driver by .inf file it appears twice in the Device Manager:

Do not do this unless you have a real PnP driver.
Forget about INF files on XP unless you will rewrite the driver to be a real WDM one, not NT4 one.

Max