Changing Registry programaticly
Posted on 2004-11-21
Hi to all!
I'm trying to change "GlobalUserOffline" in registry from my application.
this is the code I'm using:
RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", 0, KEY_ALL_ACCESS, &hkey);
When I start application everything looks OK, but there isn't any change in registry.
What I'm doing wrong.
OS is Windows 2000, IE 6.