|
-
April 5th, 2010, 07:04 AM
#2
Re: Get CPU model, RAM, Storage space.
To get hardware information, you need to create an object of ManagementObjectSearcher class.
Collapse :
Code:
ManagementObjectSearcher searcher = new ManagementObjectSearcher(
"select * from " + Key);
the Key on the code above, is a variable that is replaced with appropriate data. For example, to get the information of the CPU, you have to replace the Key with Win32_Processor.
for more info refer this article : http://www.codeproject.com/KB/system...formation.aspx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|