Prev Previous Post   Next Post Next

PnPAddDevice Return Value

Posted: 02-07-2006, 09:43 AM
Hello Everyone,

I am trying to return a error value from PnPAddDevice routine of my PCI
Device driver for the system to not load the driver for that particular
device. I am trying with STATUS_NOT_SUPPORTED.

I see that the AddDevice keeps getting called.

The background for this trial is as follows:

My driver is a PnP Driver and there is a legacy driver available for the
same PCI device with different functionality.

The system has 10 similar PCI devices and I want to load my driver only on
two of them. I am using the PCI three-tuples BUS-DEVICE-FUNCTION for
choosing my devices.

But, for automatic installation we have to use the PCI VendorID and Device
ID which is same for all the 10 PCI devices. If I try automatic
installation, the system tries to load my driver for all the 10 PCI devices.

So, I check for specific BUS-DEVICE-FUNCTION in my AddDevice and return
STATUS_NOT_SUPPORTED. I expect the system to ignore my driver and allow the
legacy driver to use the device. But, it does not seem to happen and my
AddDevice keeps getting called.

Is there any specific STATUS_* value I have to return from AddDevice to
achieve what I want? Please let me know the value or point me to the place
where I can get it from.

Thanks in advance for the big help from all of you

Best Regards,

Raj


Reply With Quote

Responses to "PnPAddDevice Return Value"

 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
WMI GetObject Failing to return anything Charles Palmer Windows XP WMI 2 09-04-2004 08:22 PM
LOTR Return of the King DJ55 Windows XP Games 2 12-27-2003 08:33 PM
How do I return to the original install of WMM? C.J. Grant Windows XP Video 1 09-09-2003 11:50 PM
return of MM1 patricia hunter Windows XP Movie Maker 3 08-31-2003 10:18 PM
How do I return a security on my Windows XP null Windows XP Security & Administration 1 07-17-2003 07:58 PM