Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OSArchitecture
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01386683
Message ID:
01386733
Views:
37
SELECT * FROM Win32_Processor only gives me cpu0 and cpu1 (I have to processors).
I wish I had more time to sit down and play with this now but I will not have time until tonight. Thanks for the reply though.

>Hi,
>
>I think you need "SELECT * FROM Win32_Processor".
>IIRC there's an AddressWidth property in there.....
>
>>I am still trying to learn more about how to determine if the computer running my software is using 64-bit OS and/or processor.
>>I found this code online:
>>
>>ManagementObjectSearcher mso = new ManagementObjectSearcher("SELECT * FROM Win32_OperatingSystem"); //Win32_ComputerSystem");
>>ManagementObjectCollection qc = mso.Get();
>>
>>Console.WriteLine("OSArchitecture: " +
>>mso["OSArchitecture"].ToString());
>>
>>
>>According to the docs OSArchitecture should give me the info that I need but the code above does not give me information about OSArchitecture. I think there is something wrong with my select statement. Any information on this topic is welcome.
>>
>>Thanks,
>>Einar
Semper ubi sub ubi.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform