|Subject:||TRegistry.ReadString() and 64-bit OS|
|Posted by:||Jon E. Scott (NOSPAMsuppo…@blueorbsoft.comNOSPAM)|
|Date:||Wed, 13 Sep 2006|
Using Delphi 7.1.
I just noticed that when using TRegistry on 64-bit OS to read values from
HKEY_LOCAL_MACHINE\Software, it seems the TRegistry.Read* calls read values
from the Wow6432Node tree . I understand that since this is a 32-bit app,
the OS will force it to read/write to that key instead of the original
64-bit key. Since this is a system information app, I *need* to get values
from the real tree, not from Wow6432Node. How does one force TRegistry to
read from the correct place? I even tried RegOpenKeyEx() and
RegQueryValueEx() to no avail.
Jon E. Scott
Blue Orb Software