How to check whether the current process is a 64-bit process in C#

1 Answer

0 votes
using System;

class Program
{
    static void Main() {
        string str = Environment.Is64BitProcess ? "yes" : "no";
        
        Console.WriteLine(str);
    }
}




/*
run:

yes

*/

 



answered Nov 18, 2023 by avibootz
...