// 确认当前进程的位数
bool is64BitProcess = IntPtr.Size == 8;
Console.WriteLine("当前进程位数: " + (is64BitProcess ? "64位" : "32位"));
c# 获取运行机器是 64位还是32位
最新推荐文章于 2024-07-15 17:39:15 发布
// 确认当前进程的位数
bool is64BitProcess = IntPtr.Size == 8;
Console.WriteLine("当前进程位数: " + (is64BitProcess ? "64位" : "32位"));