32 位应用程序访问 64 位注册表 [英] 32bit application access to 64bit registry

查看:34
本文介绍了32 位应用程序访问 64 位注册表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用 32 位编写的 OS Shell,它正在替换 Vista 机器的 Explorer.exe.我运行了一个也是用 32 位编写的实用程序,它允许在 Explorer shell 和 My shell 之间切换.由于某些机器是基于 64 位的,我无法更改 HKLMMicrosoftcurrentshell 密钥(短格式的 reg 密钥).我最终被 WOW64 子项重定向拦截了..并且实际上没有发生对 shell 键的更改.微软关于实时重定向的 BS 并不完全正确.除非你重启整机,否则是不会重定向的一键.

I have an OS Shell written in 32bit that is replacing the Explorer.exe of a Vista machine. I run a utility which is also written in 32bit, which allows to switch between the Explorer shell and My shell. With some of the machines being 64bit based I can not Alter the HKLMMicrosoftcurrentshell Key (short formed reg key). I end up getting intercepted by the WOW64 subkey redirection.. and effectively the changes to the shell key do not take place. Microsofts BS about realtime Redirection is not exactly true. That is one key that does not redirect unless you restart the whole-machine.

所以我正在寻找一个解决方案来解决任何 UPDATE 重定向密钥并加载它的问题.

So I am looking for a solution to Either UPDATE that redirected key and have it load.

Shell 替代品是一种销售点软件.我的 GUI 实用程序将仅运行 32 位命令提示符或批处理文件以 32 位运行..

The Shell replacement is a Point of Sales software. My GUI utility will run 32bit command prompts only or batch files run as 32bit..

我可以从 32 位执行或调用另一个批处理文件,例如 64 位吗?

Can I Execute or call another batch file like a 64bit from a 32bit ?

推荐答案

查看 MSDN 详细了解如何访问您想要的确切配置单元

Check out MSDN for details on how to access the exact hive you want

KEY_WOW64_64KEYKEY_WOW64_32KEY 标志启用显式访问 64 位注册表视图和分别为 32 位视图.

The KEY_WOW64_64KEY and KEY_WOW64_32KEY flags enable explicit access to the 64-bit registry view and the 32-bit view, respectively.

这篇关于32 位应用程序访问 64 位注册表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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