方法1,msdn 有相应的例子,代码贴出来给你看看

MSDN有相应Example!

#include <windows.h>

typedef BOOL (WINAPI *LPFN_ISWOW64PROCESS) (HANDLE, PBOOL);

LPFN_ISWOW64PROCESS
fnIsWow64Process = (LPFN_ISWOW64PROCESS)GetProcAddress(
GetModuleHandle( "kernel32 "), "IsWow64Process ");

BOOL IsWow64()
{
BOOL bIsWow64 = FALSE;

if (NULL != fnIsWow64Process)
{
if (!fnIsWow64Process(GetCurrentProcess(),&bIsWow64))
{// handle error
std::cout < < "Handle Error " < <std::endl;
}
}
return bIsWow64;
}

方法2:
GetSystemWow64Directory
判断这个文件夹是否存在

相关文章:

  • 2022-12-23
  • 2021-08-07
  • 2021-07-12
  • 2021-06-24
  • 2021-10-21
  • 2022-02-16
  • 2021-08-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
  • 2021-09-18
  • 2022-02-21
  • 2022-01-04
  • 2022-12-23
相关资源
相似解决方案