FindPciDeviceById

This function finds a PCI device by Vendor and Device ID.

Syntax

DWORD FindPciDeviceById(
    WORD vendorId,
    WORD deviceId,
BYTE index
);

Parameters

Return Values

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.

Remarks

You can set the maximum PCI bus index to scan using SetPciMaxBusIndex.

Requirements