WOW64:从32位进程获取x64%CommonProgramFiles%

pet*_*hen 7 c++ winapi wow64

我试过的查询:ExpandEnvironmentStrings("%COMMONPROGRAMFILES%"), GetSpecialPath(CSIDL_PROGRAM_FILES_COMMON).

所有解析(通常)c:\\Program Files (x86)\\Common Files来自我的32位应用程序.我需要检查c:\\Program Files\\Common Files64位应用程序下安装的文件版本(通常).

Han*_*ant 15

在64位操作系统上,ProgramW6432环境变量指向c:\ program files.英文版Windows上32位应用程序的完整列表:

  • ProgramFiles => c:\ program files(x86)
  • ProgramFiles(x86)=> c:\ program files(x86)
  • ProgramW6432 => c:\ program files
  • CommonProgramFiles => c:\ program files(x86)\ common files
  • CommonProgramFiles(x86)=> c:\ program files(x86)\ common files
  • CommonProgramW6432 => c:\ program files\common files

提醒一下:该文件夹不应包含32位程序感兴趣的任何内容.技术上.请注意文件系统重定向器,它会将文件请求从c:\ program files重定向到c:\ program files(x86).如果您真的想要访问该目录中的文件,则必须使用Wow64DisableWow64FsRedirection().


Kyl*_*ons 5

%CommonProgramW6432%