views:

107

answers:

1

I am trying to read the 64-bit HKLM\SOFTWARE registry key from a 32-bit (C#) application. This, of course, keeps redirecting my view to HKLM\SOFTWARE\Wow6432Node.

According to what I've found this is doable, but I can't seem to find a .NET example anywhere. I just need to read; not write. Anyone ran across this before?

+2  A: 

The managed equivalent is the RegistryView enumeration (added in .NET 4.0).

Stephen Cleary
@Stephan: +1 nice :)
Brian R. Bondy
They had no choice but to add this... thank to the change in befavior between Windows Vista, which reflects registry entries, and Windows 7, which doesn't.
R. Bemrose
Actually, Windows 7 does include registry reflection.
Stephen Cleary