[英]How to read a REG_MULTI_SZ type value from the registry using RegQueryValueEx(..) in c++
In our vc++ win32 application we are reading a registry value of type reg_multi_sz, its working fine on 32-bit but giving empty buffer when i ran on 64- bit. 在我们的vc ++ win32应用程序中,我们正在读取reg_multi_sz类型的注册表值,它在32位上可以正常工作,但是当我在64位上运行时却提供了空缓冲区。 How can I read values of 64 bit registry from my 32-bit application ?
如何从32位应用程序读取64位注册表的值?
Try the sample code listed on the following help article. 请尝试以下帮助文章上列出的示例代码。 It's written specifically for reading
REG_MULTI_SZ
values. 它是专门为读取
REG_MULTI_SZ
值而编写的。
Could you be more specific? 你可以再详细一点吗? Usually when your try to read 64-bit registry hive in 32-bit code you must open HKLM\\Software using KEY_WOW64_64KEY.
通常,当您尝试以32位代码读取64位注册表配置单元时,必须使用KEY_WOW64_64KEY打开HKLM \\ Software。 Hope that helps.
希望能有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.