Jo
2006-04-07 14:12:01 UTC
And here's the code that does it:
HKEY hKey;
LONG dw = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\mycompany", 0, 0,
&hKey);
if (dw != ERROR_SUCCESS)
return FALSE;
If I step thought it I find dw == 5 which is ERROR_ACCESS_DENIED. I've
been all through the access permissions and I've given full access to
everything. I've tried creating the key with regedit, then deleting the
key and recreating it with with:
HKEY hKey;
DWORD dwDummy;
LONG dw = RegCreateKeyEx(HKEY_LOCAL_MACHINE, "Software\\mycompany", 0,
NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hKey, &dwDummy);
as the same user which returns ERROR_SUCCESS.
HKEY hKey;
LONG dw = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\mycompany", 0, 0,
&hKey);
if (dw != ERROR_SUCCESS)
return FALSE;
If I step thought it I find dw == 5 which is ERROR_ACCESS_DENIED. I've
been all through the access permissions and I've given full access to
everything. I've tried creating the key with regedit, then deleting the
key and recreating it with with:
HKEY hKey;
DWORD dwDummy;
LONG dw = RegCreateKeyEx(HKEY_LOCAL_MACHINE, "Software\\mycompany", 0,
NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hKey, &dwDummy);
as the same user which returns ERROR_SUCCESS.