المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to get access right to Registry in Vista



C++ Programming
03-30-2009, 12:25 PM
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