Identifying the CPU architecture type using C#

前端 未结 14 2303
心在旅途
心在旅途 2020-12-01 17:52

I want to check which CPU architecture is the user running, is it i386 or X64 or AMD64. I want to do it in C#. I know i can try WMI or Registry. Is there any other way apart

14条回答
  •  猫巷女王i
    2020-12-01 18:36

    You could ask the user perhaps?

    Just kidding of course... I think WMI is what you would use for that. But maybe there is some other way as well?

    If you go for WMI then LinqToWmi could be of use. I tried it out once, and it seemed pretty straight forward =) -> http://www.codeplex.com/linq2wmi

提交回复
热议问题