How to know my processor is 32 or 64 bits in C#?
C# – How to know the processor is 32 or 64 bits in C#
c++
Related Question
- C# – Deep cloning objects
- C# – How to enumerate an enum
- C# – How to create an Excel (.XLS and .XLSX) file in C# without installing Microsoft Office
- C# – How to convert a byte array to a hexadecimal string, and vice versa
- C# – Case insensitive ‘Contains(string)’
- C# – How to get a consistent byte representation of strings in C# without manually specifying an encoding
- C# – How to generate a random int number
Best Solution
You can query the WMI class
Win32_Processor
usingSystem.Management.ManagementObject
:Take a look at the MSDN Library description for other processor codes.
A problem with this is that the user, who is running the program, needs privileges for viewing the WMI.