Improved GetRegistrySetting, SetRegistrySetting