- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我尝试过的查询:ExpandEnvironmentStrings("%COMMONPROGRAMFILES%")
、GetSpecialPath(CSIDL_PROGRAM_FILES_COMMON)
。
我的 32 位应用程序中的所有内容都解析为(通常)c:\\Program Files (x86)\\Common Files
。我需要检查(通常)安装在 64 位应用程序的 c:\\Program Files\\Common Files
下的文件版本。
最佳答案
在 64 位操作系统上,ProgramW6432 环境变量指向 c:\program files。英文版 Windows 上的 32 位应用的完整列表:
提醒一下:该文件夹不应包含 32 位程序感兴趣的任何内容。从技术上讲。当心文件系统重定向器,它将文件请求从 c:\program files 重定向到 c:\program files (x86)。如果您真的想访问该目录中的文件,则必须使用 Wow64DisableWow64FsRedirection()。
关于c++ - WOW64:从 32 位进程获取 x64 %CommonProgramFiles%,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2539724/
在 many special folder locations in Windows 当中,“CommonProgramFiles”似乎不合适。该描述表明组件(即 DLL)将在该位置共享。 在我看来,
我有一种情况需要通过读取注册表设置来返回目录路径。注册表值以以下格式返回路径 %CommonProgramFiles%\System\web32.dll 当消费者代码期待它的格式时 C:\Progra
我尝试过的查询:ExpandEnvironmentStrings("%COMMONPROGRAMFILES%")、GetSpecialPath(CSIDL_PROGRAM_FILES_COMMON)。
我是一名优秀的程序员,十分优秀!