public static bool FindDevice(ushort venId, ushort devId, out PCI_DEVTABLE device) { for (int i = 0; i < PciDeviceTableSize; i++) { var current = PciDeviceTable[i]; if (current.VenId == venId && current.DevId == devId) { device = current; } } device = default(PCI_DEVTABLE); return false; }
public static bool FindDevice(ushort venId, ushort devId, out PCI_DEVTABLE device) { for (int i = 0; i < PciDeviceTableSize; i++) { var current = PciDeviceTable[i]; if (current.VenId == venId && current.DevId == devId) { device = current; } } device = default(PCI_DEVTABLE); return(false); }