vb6 判断64位操作系统

Option Explicit
 Private Declare Function GetCurrentProcess Lib "kernel32" () As Long
 Private Declare Function IsWow64Process Lib "kernel32" (ByVal hProcess As Long, ByRef Wow64Process As Long) As Long
  
 Private Sub Command1_Click()
     Dim lngReturn As Long
     Call IsWow64Process(GetCurrentProcess, lngReturn)
     If lngReturn = 0 Then
         MsgBox "非64位OS"
     Else
         MsgBox "64位OS"
     End If
 End Sub 

 

posted on 2014-08-24 11:56  空明流光  阅读(924)  评论(0编辑  收藏  举报

导航