I wrote a program and I want to auto run it every time the pc starts, and apparently I have to add a key in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Run and HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Run or something like that, and the key value would be the path to the file.
My question is, how do I write a program that writes the keys automatically? Any sort of windows function that does this?
Thanks.