玩酷之家

 找回密码
 立即注册
查看: 75|回复: 0

vb6 调用 64位应用程序

[复制链接]
发表于 2021-3-16 13:30:22 | 显示全部楼层 |阅读模式
本帖最后由 liming 于 2021-3-16 13:54 编辑
  1. Private Declare Function Wow64DisableWow64FsRedirection Lib "Kernel32" (ByRef oldvalue As Long) As Boolean
  2. Private Declare Function Wow64RevertWow64FsRedirection Lib "Kernel32" (ByVal oldvalue As Long) As Boolean

  3. Private Sub Form_Load()

  4.     Dim fsRedirect As Long
  5.     fsRedirect = Wow64DisableWow64FsRedirection(fsRedirect)
  6.     If fsRedirect Then
  7.         Shell "c:\windows\system32\cmd.exe", vbNormalFocus
  8.         Wow64RevertWow64FsRedirection fsRedirect
  9.     End If
  10.    
  11. End Sub
复制代码

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|玩酷之家 ( 鄂ICP备14012049号 )

GMT+8, 2021-4-22 09:35 , Processed in 1.076402 second(s), 17 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表