如何判断系统是32位还是64位的?
判断系统是不是64位的容易
MsgBox(System.Runtime.InteropServices.Marshal.SizeOf(IntPtr.Zero))
MsgBox(Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE"))
If Integer.MaxValue = 2147483647 Then
MsgBox("x64")
End If
Environment.Is64BitOperatingSystem 属性
命名空间: System
程序集: mscorlib(位于 mscorlib.dll)
语法VB
Public Shared ReadOnly Property Is64BitOperatingSystem As Boolean
属性值
Type: System.Boolean
如果操作系统为 64 位操作系统,则为 true;否则为 false。
.NET Framework 自 4.0 起可用
程序集: mscorlib(位于 mscorlib.dll)
语法VB
Public Shared ReadOnly Property Is64BitOperatingSystem As Boolean
属性值
Type: System.Boolean
如果操作系统为 64 位操作系统,则为 true;否则为 false。
.NET Framework 自 4.0 起可用
[本日志由 tiancao1001 于 2017-11-16 07:24 PM 编辑]
|
暂时没有评论
发表评论 - 不要忘了输入验证码哦! | |||
作者: | 用户:
密码: 注册? 验证: |
||
评论:
禁止表情 禁止UBB 禁止图片 识别链接 识别关键字 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
|||