I am trying to write to the registry from my application, but when I do I get access denied. Of course, it works if i run the app as Administrator. However, with my applcation, it is not initiated by the user. It start automatically.
So, the question is, how do i read/write to my own registry key from the C++ app?
Thanks for any help.
Write to
HKEY_CURRENT_USERAnd check out this posts
Vista + VB.NET – Access Denied while writing to HKEY_LOCAL_MACHINE
Writing string (REG_SZ) values to the registry in C++
How to read registry branch HKEY_LOCAL_MACHINE in Vista?