FindPciDeviceByClass

This function finds a PCI device by Device Class.

Syntax

DWORD FindPciDeviceByClass(
BYTE baseClass,
BYTE subClass, BYTE programIf,
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