I'm trying to determine a consistent way to determine the device number of my PCI bus devices.
SPDRP_LOCATION_INFORMATION returned from SetupDiGetDeviceRegistryProperty gives me
PCI bus 3, device 0, function 0
PCI bus 3, device 1, function 0
for my two devices.
The problem is that in different versions of Windows(Win7 vs Win10) these 'device' values seem to get swapped. These are identical devices but are connected externally in different ways. I need to be able to consistently know which board I'm accessing. Is there a consistent way to know which PCI slot is which?