Jungo WinDriver  
Official Documentation

◆ WDC_PciGetExpressGenBySlot()

DWORD DLLCALLCONV WDC_PciGetExpressGenBySlot ( _In_ WD_PCI_SLOT pPciSlot)

Retrieves the PCI Express generation of a device.

Parameters
[in]pPciSlotPointer to a PCI device location information structure, which can be acquired by calling WDC_PciScanDevices()
Returns
Returns 0 if device is not a PCI Express device, otherwise returns the PCI Express generation of the device;