This function finds a PCI device by Vendor and Device ID.
DWORD FindPciDeviceById(
WORD vendorId,
WORD deviceId,
BYTE index
);
If it finds a PCI device, the return value is a following PCI device address.
| bit | description |
|---|---|
0- 2 |
Function Number |
3- 7 |
Device Number |
8-15 |
PCI Bus Number |
16-31 |
Reserved |
If it does not find a PCI device, the return value is 0xFFFFFFFF.
You can set the maximum PCI bus index to scan using SetPciMaxBusIndex.