c# - issue with RegistryKey when using opensubkey and then changing that subkey -
ok, i'm having issue , dont understand why. although know can alter whole text improve understand why happening. lets im opening subkey
registrykey regkey = registrykey.openremotebasekey(registryhive.localmachine, workstation, registryview.registry64).opensubkey(@"software\censored\issuance\test\", true);
that work fine can set/get key values , such lets need move subkey why cant
regkey= regkey.opensubkey(@"\software\something\somewhere\youknow");
then start setting or getting values new location? help appreciated!
i tried search similar post didnt appear had asked before sorry if it's dupe!
registrykey regkey = registrykey.openremotebasekey(registryhive.localmachine, workstation, registryview.registry64) .opensubkey(@"software\censored\issuance\test\", true); regkey = regkey.opensubkey(@"foo");
this open subkey foo
@ software\censored\issuance\test\foo
to read key not subkey
registrykey basekey = registrykey.openremotebasekey(registryhive.localmachine, workstation, registryview.registry64); registrykey regkey = basekey.opensubkey(@"software\censored\issuance\test\", true); ... regkey = basekey.opensubkey(@"software\something\somewhere\youknow", true);
c#
No comments:
Post a Comment