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:
01386688
Vues:
42
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