C#獲取電腦硬件信息(CPU ID、主板ID、硬盤ID、BIOS編

我們在利用C#開發桌面程序(Winform)程序的時候,經常需要獲取一些跟系統相關的信息,例如用戶名、MAC地址、IP地址、硬盤ID、CPU序列號、系統名稱、物理內存等。     獲取CPU編號: 使用之前先添加引用System.Management.dll; 再引用using System.Management; ManagementClass mc = new ManagementClass(
相關文章
相關標籤/搜索