Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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);
        }