獲取電腦硬體資訊

2021-06-13 05:56:46 字數 1170 閱讀 7381

[csharp]

[csharp] 

[csharp] 

[csharp]

using system; 

using system.collections; 

using system.management; 

namespace hardwareinfos   

public static hashtable getallinfos(informations info)   

catch  

} } 

return table; 

} public static cpuinfo getcpuid()   

catch  

break; 

} return cpu; 

} public static cpuinfo getcpuid2()   

catch  

break; 

} return cpu; 

} public static motherboard getmotherboard()   

catch  

break; 

} return motherboard; 

} public static motherboard getmotherboard2()   

catch  

break; 

} return motherboard; 

} public static biosinfo getbiosinfo()   

catch  

break; 

} return bios; 

} public static physicaldiskinfo getphysicaldiskinfo()   

catch  

break; 

} return physicaldisk; 

} } 

public struct cpuinfo   

public struct motherboard   

public struct biosinfo   

public struct physicaldiskinfo   

public enum informations   

C 獲取電腦硬體資訊

獲取cpu編號 view plaincopy to clipboardprint?managementclass mc new managementclass win32 processor managementobjectcollection moc mc.getinstances string ...

vbs wmi獲取電腦硬體資訊例項

set wmi getobject winmgmts 程式設計客棧 setoepgjpyab board wmi.instancesof win32 baseboard for each b in board msg 主機板 b.manufacturer vbtab b.product vbtab ...

C 獲取電腦硬體配置資訊

using system using system.management using system.collections using system.collections.specialized using system.text namespace rainsoft.management end...