Posts Tagged ‘registry’
UnauthorizedAccessException writing to HKLM
Q. I’m trying to write to HKLM on a Vista computer using the following code:
Dim k As Microsoft.Win32.RegistryKey k = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("software", True) k = k.CreateSubKey("subkey1\testprogram") k.SetValue("foo", "bar")
But, when I get to the last line, the UnauthorizedAccessException is thrown. How do I fix this?
Other Related Items:
Internet for Seniors - Windows Vista EditionThis instructional video has been designed to give computer shy seniors a non-technical and easy to follow introduction to the World Wide Web.This ... Read More >
Russ Berrie Shining Stars Pink PigGet a cute plush toy that's a real "star!" A secret code allows you to log on to www.shiningstars.com, register and name a real star with the Internat... Read More >
étagère Torchiere with Frosted Glass ShadeStately and sculptural, this torchiere stands alone as an element of décor. It features a metal skeleton similar in style to the Eiffel Tower with th... Read More >

