HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductId 未找到在 64 位 Windows 上运行 32 位应用程序 [英] HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductId not found running 32bit app on 64bit Windows

查看:76
本文介绍了HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductId 未找到在 64 位 Windows 上运行 32 位应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

确实是标题.在 regedit 中查看键值存在,但 Wow6432 键 (HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion) 没有这个键.这意味着 32 位应用程序不能在我的 64 位 Windows 版本上运行……这似乎是错误的,32 位应用程序不应该在没有修改的情况下运行吗?或者这是一种情况,必须对 32 位应用程序进行调整才能在 64 位 Windows 上运行?

As title really. Looking in regedit the key-value exists, but the Wow6432 key (HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion) doesn't have this key. This means a 32-bit app doesn't work on my 64-bit Windows version... which seems wrong, shouldn't the 32-bit app run without modifications? Or is this one case 32-bit apps have to be tweaked to work on 64bit Windows?

推荐答案

应用程序真的不应该直接访问这个注册表值.获取此值的最佳方法是使用 WMI 获取 Win32_OperatingSystem 类.这适用于在 Win64 上运行的 32 位应用程序.

Applications really shouldn't access this registry value directly. The best way to get this value is to use WMI to get the SerialNumber property of the Win32_OperatingSystem class. This works fine from a 32-bit application running on Win64.

另一种方法是使用 KEY_WOW64_64KEY 打开注册表项时的标志(不适用于 Windows 2000.)

An alternative would be to use the KEY_WOW64_64KEY flag when opening the registry key (does not work on Windows 2000.)

这篇关于HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductId 未找到在 64 位 Windows 上运行 32 位应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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