Archive: how to detect device in PCI slot?


how to detect device in PCI slot?
Hello,

I am creating a driver installer, but before installing the driver I want to assure that the device is inserted in the PCI slot. Do you know how can this be done?

Thanks,


It's been a while since I worked with devices but the two options you have that I am aware of. One is to query via WMI via wmic.exe (or write an executable/DLL that queries WMI and call that). Your other option is to use the methods in setupapi.dll which I have used in the past to detect USB mass storage devices. Both options I think are only available on 2000 and above.

Stu


thank you. I will check them out.