c++ - Strange behaviour with RegQueryValueEx whitch return value of another register -


i want path of excel.exe registry. used following:

i using windows64bits

 regopenkeyex(hkey_local_machine, szkey, 0, key_read, &hkey) 

with

szkey = "\classes\clsid\{excelclsid}\localserver", 

this register contains "c:\progra~1\mif5ba~1\office15\excel.exe /automation"

used excel.exe path

regqueryvalueex(hkey, null, null, null, (byte*)szpath, &csize) 

so when building solution platform x64, path

c:\\progra~1\\mif5ba~1\\office15\\excel.exe /automation 

which fine, when building solution win32 platform following path

"c:\\program files\\microsoft office\\office15\\excel.exe" /automation 

which strange because value stored in following registry

hkey_local_machine\software\wow6432node\classes\clsid\{excelclsid}\ 

am missing here?

the windows registry maintains, more or less transparently, different information 32-bit , 64-bit applications running in same environment. wow6432node see indicates value key specific 32-bit applications running on 64-bit version of windows.

you can disable default registry redirection (see regdisablereflectionkey), in majority of cases isn't want do.

see information on registry redirection here.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -