How to get software & hardware information from windows (like dxdiag)?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 09:47:38

I think this will help you more,I dont want to explain Try this http://www.codeproject.com/Articles/17973/How-To-Get-Hardware-Information-CPU-ID-MainBoard-I

Just want to add a little bit to the answer by las. What you want you use is something called Windows Management Instrumentation. Full details of the implementation is located here.

Basically WMI is an SQL like query language that allows you to query various aspects of the computers infrastructure. The link provided by las appears to provide a decent example.

Here is a link to a sample bit of code that allows you to browse through all the schemas provided in WMI.

It is simple, you can easily get such information from the registry, or using the System.Management library. It depends greatly on what information you are willing to get. I made a detailed post which explains how you can accomplish this Here it is

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!