Jungo WinDriver  
Official Documentation

◆ WD_PciScanCards

#define WD_PciScanCards (   h,
  pPciScan 
)
Value:
#define FALSE
Definition: kpstdlib.h:260
#define WD_FUNCTION
Definition: windrvr.h:1838
#define IOCTL_WD_PCI_SCAN_CARDS
Definition: windrvr.h:1614

Detects PCI devices installed on the PCI bus, which conform to the input criteria (vendor ID and/or card ID), and returns the number and location (bus, slot and function) of the detected devices.

Parameters
[in]hHandle to WinDriver's kernel-mode driver as received from WD_Open()
[in,out]pPciScanPointer to a PCI bus scan information structure
Returns
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise
WD_PCI_SLOT pciSlot;
BZERO(pciScan);
pciScan.searchId.dwVendorId = 0x12bc;
pciScan.searchId.dwDeviceId = 0x1;
WD_PciScanCards(hWD, &pciScan);
if (pciScan.dwCards > 0) /* Found at least one device */
pciSlot = pciScan.cardSlot[0]; /* Use the first card found */
else
printf("No matching PCI devices found\n");
DWORD dwVendorId
Definition: windrvr.h:855
DWORD dwDeviceId
Definition: windrvr.h:856
WD_PCI_SLOT cardSlot[WD_PCI_CARDS]
Array of matching PCI slots info.
Definition: windrvr.h:869
DWORD dwCards
Number of matching PCI cards.
Definition: windrvr.h:865
WD_PCI_ID searchId
Scan Parameters.
Definition: windrvr.h:862
#define WD_PciScanCards(h, pPciScan)
Detects PCI devices installed on the PCI bus, which conform to the input criteria (vendor ID and/or c...
Definition: windrvr.h:2442
#define BZERO(buf)
Definition: windrvr.h:1548

Definition at line 2442 of file windrvr.h.