Dectecting Vendor/Device & Subsys values in the WMD

K

kindsol

Hello,

I have a single WDM driver that supports two similar hardware devices. Both
devices are detected by the system based on manufacturer information in the
..INF file:

[Manufacturer]
%MY% = MY.Mfg

[MY.Mfg]
%MY.DeviceDesc0% = mydevice, PCI\VEN_C0FE&DEV_BABE
%MY.DeviceDesc1% = mydevice, PCI\VEN_1057&DEV_0006&SUBSYS_BABEC0FE

Once in my DriverObject->DriverExtension->AddDevice routine I have to do
some funky stuff to differentiate between the two devices supported.

Is there an easy way to get the VENDOR/DEVICE &/or SUBSYS values for the
device once I am in the AddDevice routine? Am I using the WDM wrong?

Any help would be much appreciated!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top