WoW64下的x64程序文件的SHGetKnownFolderPath失败。 [英] SHGetKnownFolderPath for x64 Program Files under WoW64 fails.

查看:153
本文介绍了WoW64下的x64程序文件的SHGetKnownFolderPath失败。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从32位应用程序调用它时,使用参数FOLDERID_ProgramFilesX64调用SHGetKnownFolderPath会失败并显示ERROR_FILE_NOT_FOUND。这与以下备注部分中的文档相反: http://msdn2.microsoft.com/en-us/library/bb762584(VS.85)的.aspx ,它清楚地表明在64位操作系统上从32位应用程序调用带有该参数的函数是有效的。

Calling SHGetKnownFolderPath with the parameter of FOLDERID_ProgramFilesX64 fails with ERROR_FILE_NOT_FOUND when I call it from a 32-bit app. This is contrary to the documentation in the remarks section of: http://msdn2.microsoft.com/en-us/library/bb762584(VS.85).aspx, which clearly states that it's valid to call the function with that parameter from a 32-bit app on a 64-bit OS.

示例代码:




代码片段

推荐答案

你能解决这个问题吗?我也有完全相同的问题。

谢谢!
Were you able to solve this issue? I too have the exact same problem.

Thanks!


这篇关于WoW64下的x64程序文件的SHGetKnownFolderPath失败。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆