Get PCI express link width / specification version Programmatically

Many people include me find how to get PCI express link width / specification version programmatically. But there’re too many useless articles. Like examples about NetworkAdapters(I applied “-NetworkAdapter” and 90% of search results are gone!). And some of the remaining results say it must be solved with drivers. Others say just give up windows and […]