// JP opened flex table

Click to See Complete Forum and Search --> : Driver Install ...


mmurphy
August 23rd, 2004, 09:11 AM
Hello All ...

I am currently attempting to programmatically install driver for a PCI card. It has 1 Plug ‘n Play Driver and 2 Device Drivers. I am using the UpdateDriverForPlugAndPlayDevices() from the Windows DDK. Passing it the Hardware ID and the Full Path to the INF. It Works great for both the PnP driver and the device driver, except that the PnP driver seems to install 1 more then necessary. Example: If I manually install the PnP driver for the card I get 3 entries:

Device Manager
+Sound, Video and Game Controllers
-Master
-Master
-Master

The results of the UpdateDriverForPlugAndPlayDevices():

Device Manager
+Sound, Video and Game Controllers
-Master
-Master
-Master
!Master

The last Master has explanation point by it. The card / driver function with the extra Master, but I would prefer not to have it there if its not being used.

Has anyone had any experience using this function?

Thanks,

Mike Murphy

anand.sunku
September 13th, 2005, 01:35 AM
Hi,
i am getting the same problem as mike murphy had got, when i call the updatedriverforplugandplaydevices api there are two entries being created ... i am writing a driver for smbus (system management bus).

hi mike murphy did you issue get solved ... help me if you have got the solution.

thanks in advance
Anand.s

//JP added flex table