Jungo WinDriver  
Official Documentation

◆ WDC_PciScanExtCaps()

DWORD DLLCALLCONV WDC_PciScanExtCaps ( _In_ WDC_DEVICE_HANDLE  hDev,
_In_ DWORD  dwCapId,
_Outptr_ WDC_PCI_SCAN_CAPS_RESULT pScanCapsResult 
)

Scans the extended (PCI Express) PCI capabilities of the given device for the specified capability (or for all capabilities).

Parameters
[in]hDevPointer to a PCI device location information structure, which can be acquired by calling WDC_PciScanDevices().
[in]dwCapIdID of the extended PCI capability for which to search, or WD_PCI_CAP_ID_ALL to search for all extended PCI capabilities.
[out]pScanCapsResultA pointer to a structure that will be updated by the function with the results of the extended (PCI Express) PCI capabilities scan.
Returns
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise