How to get access right to Registry in Vista
-
Hi, I want to programmacally create an entry under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run in Vista to make my application to Load at windows start up. But when trying to create an entry RegSetValueEx return Access denied error. How can i add an entry under Run programmatically using VC++. Whether there is any API to get an access right to Vista Registry. I am using Vista Home and VS 2005 to develop my application. thanks Nitheesh.
Jose Jo Martin http://www.simpletools.co.in
-
Hi, I want to programmacally create an entry under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run in Vista to make my application to Load at windows start up. But when trying to create an entry RegSetValueEx return Access denied error. How can i add an entry under Run programmatically using VC++. Whether there is any API to get an access right to Vista Registry. I am using Vista Home and VS 2005 to develop my application. thanks Nitheesh.
Jose Jo Martin http://www.simpletools.co.in
HKEY_LOCAL_MACHINE
implies admin/elevated access. If you don't have that, you don't get to right toHKEY_LOCAL_MACHINE
. You could, of course, try using HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run[^] instead?Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
HKEY_LOCAL_MACHINE
implies admin/elevated access. If you don't have that, you don't get to right toHKEY_LOCAL_MACHINE
. You could, of course, try using HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run[^] instead?Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
Hi Stuart, thank you for the reply. i will try with this. thanks Nitheesh.
Jose Jo Martin http://www.simpletools.co.in