HaLo2FrEeEk Posted November 18, 2009 Share Posted November 18, 2009 Is it possible to get hardware information like Motherboard manufacturer, model, CPU model and speed, RAM installed, model, etc. I'm looking to make a program for users of my site so all they'll have to do is run the program, then login through the program using their credentials from the website itself and all the hardware specs of their computer will be saved to the database, so people can compare computers...just as a fun "can I do it" project. So anyone know a way to get access to this sort of information? Quote Link to comment https://forums.phpfreaks.com/topic/182008-solved-computer-hardware-information-with-c/ Share on other sites More sharing options...
cags Posted November 18, 2009 Share Posted November 18, 2009 Quick search brought up this... http://www.codeproject.com/KB/system/GetHardwareInformation.aspx Quote Link to comment https://forums.phpfreaks.com/topic/182008-solved-computer-hardware-information-with-c/#findComment-960211 Share on other sites More sharing options...
HaLo2FrEeEk Posted November 18, 2009 Author Share Posted November 18, 2009 That's odd, it says that I need to add "using System.Management;" to the beginning (which I did) then create a ManagementObjectSearcher. Well, I get an error: The type or namespace name 'ManagementObjectSearcher' could not be found (are you missing a using directive or an assembly reference?) Why would this work in the actual compiled program and not when I'm trying to modify it for my own use... Quote Link to comment https://forums.phpfreaks.com/topic/182008-solved-computer-hardware-information-with-c/#findComment-960445 Share on other sites More sharing options...
cags Posted November 18, 2009 Share Posted November 18, 2009 Best guess is it's down to the version of the .NET framework that your working with vs the one that it was compiled using. Quote Link to comment https://forums.phpfreaks.com/topic/182008-solved-computer-hardware-information-with-c/#findComment-960449 Share on other sites More sharing options...
MadTechie Posted November 18, 2009 Share Posted November 18, 2009 As a side note .NET will only get the hardware details from installed drivers, if you want to peek/poke the devices your need to inject some asm Quote Link to comment https://forums.phpfreaks.com/topic/182008-solved-computer-hardware-information-with-c/#findComment-960467 Share on other sites More sharing options...
HaLo2FrEeEk Posted November 19, 2009 Author Share Posted November 19, 2009 Figures, I was supposed to add a reference to system.management.dll in the project references. The link you gave me didn't say that. Needless to say I've figured it out. Quote Link to comment https://forums.phpfreaks.com/topic/182008-solved-computer-hardware-information-with-c/#findComment-960584 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.