Dectecting Vendor/Device & Subsys values in the WMD

  • Thread starter Thread starter kindsol
  • Start date Start date
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!
 
Back
Top