简体   繁体   中英

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. How can I read values of 64 bit registry from my 32-bit application ?

Try the sample code listed on the following help article. It's written specifically for reading REG_MULTI_SZ values.

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. Hope that helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM