public static bool FindVendor(ushort venId, out PCI_VENTABLE vendor) { for (int i = 0; i < PciVendorTableSize; i++) { var current = PciVendorTable[i]; if (current.VenId == venId) { vendor = current; } } vendor = default(PCI_VENTABLE); return false; }
public static bool FindVendor(ushort venId, out PCI_VENTABLE vendor) { for (int i = 0; i < PciVendorTableSize; i++) { var current = PciVendorTable[i]; if (current.VenId == venId) { vendor = current; } } vendor = default(PCI_VENTABLE); return(false); }