Tuesday, March 2, 2010

It takes a lot to Wow6432Node me

For those of you that recently have switched over to a 64bit Windows OS. I'll make it short. If you are trying to look at registry keys using Microsoft.Win32.Registry class. You will find that the code that used to work on 32bit machine will no longer work.

Take this for example if you are looking for a key on the following path
HKLM\Software\foobar
You will not find it because it will actually be searching the path below.
HKLM\Software\Wow6432Node\foobar

I'm sure there are tons of reasons (good reasons at that) of why things were done this way. I don't really care, this code smells.

No comments: