本人c#新手,因公司打游击战被迫从android临时转成做c#做工厂notebook测试项目。现在跟大家分享一下如何获取AHCI BASE ADDRESS,网上这种资料我查了几乎是没有,所以希望看到我这篇文章的人少走一些弯路。
private string getAhciBaseAddress()
{string output = ""; //输出字符串
ProcessStartInfo StartInfo = new ProcessStartInfo();
StartInfo.FileName = @"C:\pciutils-3.2.0\lspci.exe";
StartInfo.Arguments = "-v -s.2";//“/C”表示执行完命令后马上退出
StartInfo.UseShellExecute = false;//不使用系统外壳程序启动
StartInfo.RedirectStandardIn