Hi Glenn,
How have you detected the real key accessed is HKEY_Users?
If you used something like SysInternals' RegMon, this might be the correct
result, because HKCU is actually a virtual registry hive the system maps to
HKEY_USERS\{SID}\
--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"glenn" <gh******@softeksoftware.com> wrote in message
news:e2**************@TK2MSFTNGP10.phx.gbl...
I am executing the following line:
RegistryKey reg = Registry.CurrentUser.OpenSubKey("Software\\My
Key\\License\\Settings");
DBPath = (String)reg.GetValue("DBPath");
and it works. However, it is not accessing the HKEY_Current_User key.
Its accessing HKEY_Users...
What gives?
glenn