2006-08-23 13:51:19 UTC
exactly what kind of shut down is occuring. This works fine when an
Administrator user is logged in, but when a restricted user is logged
in, it does not work fine. This seems odd because I'm writing to a key
in HKEY_CURRENT_USER/Software/Microsoft/Windows/Explorer, which I can
easily open up in regedit and add/edit as a restricted user.
Here is the part of my code that writes to the registry
function WriteRegRestartVal(newVal: dword) : boolean;
var Reg: TRegistry;
result := false;
Reg := TRegistry.Create(KEY_WRITE);
Reg.RootKey := HKEY_CURRENT_USER;
result := true;
Neither value gets written even if they exist or not. Does anyone have
any insight on this?