G Guest Mar 4, 2004 #1 I am using VC++.NE How I can get information about CPU in the local machine and in remote thank yo
C Cor Mar 4, 2004 #2 Hi Pola, Have a look to the WMI http://msdn.microsoft.com/library/d...frameworkapplicationswithsystemmanagement.asp I hope this helps, Cor
Hi Pola, Have a look to the WMI http://msdn.microsoft.com/library/d...frameworkapplicationswithsystemmanagement.asp I hope this helps, Cor
G Guest Mar 4, 2004 #3 You can use WMI - the System.Management namespace in .NET framework Try the following code using System using System.Management namespace ConsoleApplication class Class [STAThread static void Main(string[] args string ConfigNamespace = @"\\.\root\cimv2" string query = "select * from Win32_Processor" ManagementObjectSearcher searcher = ne ManagementObjectSearcher( ConfigNamespace, query ); ManagementObjectCollection collection = searcher.Get() foreach (ManagementObject item in collection foreach (PropertyData property in item.Properties tr Console.WriteLine(property.Name + ":" + property.Value.ToString()) catch (Exception
You can use WMI - the System.Management namespace in .NET framework Try the following code using System using System.Management namespace ConsoleApplication class Class [STAThread static void Main(string[] args string ConfigNamespace = @"\\.\root\cimv2" string query = "select * from Win32_Processor" ManagementObjectSearcher searcher = ne ManagementObjectSearcher( ConfigNamespace, query ); ManagementObjectCollection collection = searcher.Get() foreach (ManagementObject item in collection foreach (PropertyData property in item.Properties tr Console.WriteLine(property.Name + ":" + property.Value.ToString()) catch (Exception