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:
OSArchitecture
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01386683
Message ID:
01386683
Vues:
85
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform