Registry reflection

Hi,

I have ported my application from 32 bit to 64 bit application. Is there any consideration in registry point of view?

Thanks,
Kishore Wani

[159 byte] By [KishoreWani] at [2008-1-12]
# 1
Yes. There's a separate node in registry for legacy applications and separate one for 64-bit applications.

The legacy apps need to refer to:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node

Open the registry and take a look.

Regards,
Vikram

Vikram at 2007-8-21 > top of Msdn Tech,.NET Development,64-Bit .NET Framework Development....
# 2
Vikram is correct. There are 2 registry hives on Win64. By default the bitness of your process will determine which hive you access.

From a 64 bit application there are two ways to access the 32bit registry hive. Navigating to the Wow64Node, or you can open the registry key with the KEY_WOW64_32KEY access mask.

Similar any 32bit applicaiton can access the 64bit registry hive by using the KEY_WOW64_64KEY access mask.

Jeff

JeffSchwartzmsft at 2007-8-21 > top of Msdn Tech,.NET Development,64-Bit .NET Framework Development....

.NET Development

Site Classified