Wow6432node重定向问题, [英] Wow6432node redirection problem ,

查看:146
本文介绍了Wow6432node重定向问题,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个64位applicatoin,它使用一些32位图形exes.
当我为32位exe执行createprocess时,它会在"HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ MyApp"中寻找注册表路径.
但是由于我的应用程序是64位,所以所有注册表项都在
"HKEY_LOCAL_MACHINE \ SOFTWARE \ MyApp".
结果creatprocess fot 32位图形exe失败.
我的问题是有什么办法让那些32位exe也在默认的64位注册表路径中查找注册表路径,而不是wow6432node吗?"

P.S.我无法将那些32位exe转换为64位,因为我没有那些32位图形exe的源代码.

请为我提供解决此问题的任何帮助.

问候..

Hello All,

I have one 64 bit applicatoin , which uses some 32 bit graphic exes.
While i am doing createprocess for that 32 bit exes , its looks for registry path in "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MyApp" .
But as my application is 64 bit , all registry entries is in
"HKEY_LOCAL_MACHINE\SOFTWARE\MyApp".
As result creatprocess fot 32 bit graphic exe fails.
My Question is that "Is there any way so those 32 bit exe also looks for there registry path in default 64 bit registry path instead of wow6432node ?"

P.S. I cant convert those 32 bit exe into 64 bit as I don''t have the source code for those 32bit graphic exes .

Please provide me any help to resolve this issue.

Regards..

推荐答案

您可以执行以下操作:
1.在您的64位应用程序中,将HKEY_LOCAL_MACHINE \ SOFTWARE \ MyApp下的所有条目复制到HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ MyApp. AFAIK,允许在64位程序中显式访问Wow6432Node.
3.如果您的32位应用程序可以从其他来源获取这些条目,请提供该条目.例如,我见过在命令行中需要参数的应用程序.如果没有提供,则应用程序从注册表中读取它们;如果不存在,则应用程序使用默认值.如果您使用的32位应用程序可以在命令行中接受参数,则可以读取64位应用程序中的注册表并将其传递.

希望这会有所帮助,
Pablo.
There are several things you can do:
1. In your 64-bit application, copy all entries under HKEY_LOCAL_MACHINE\SOFTWARE\MyApp to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MyApp. AFAIK, explicit access to Wow6432Node in 64-bit programs is allowed.
3. If your 32-bit application can get these entries from an alternate source, provide that. For instance, I''ve seen applications that expect parameters in the command line; if those weren''t provided, the application reads them from the registry; if not present, the application uses default values. If the 32-bit application you use can accept parameters in the command line, you can read the registry in the 64-bit application and pass them.

Hope this helps,
Pablo.


没有办法让那些32位exe也以默认的64位注册表路径而不是wow6432node查找其注册表路径吗?"

唯一可能的解决方案是将32位exe移植到64位:-)
There is no way so those 32 bit exe also looks for their registry path in default 64 bit registry path instead of wow6432node ?"

The only possible solution is to port 32 bit exe into 64 bit :-)


这篇关于Wow6432node重定向问题,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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