Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OSArchitecture
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01386683
Message ID:
01386739
Vues:
26
Hi,

Hmm. I thought that's what I'd used in the past. Anyway the answer may be in here:http://www.codeproject.com/KB/system/GetHardwareInformation.aspx
Best,
Viv

>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform