If you want your program to startup automatically when the user logs in, just paste this code into it.
To add as a HKLM (For all users) startup item instead of HKCU (Current User), change HKEY_CURRENT_USER to HKEY_LOCAL_MACHINE.
I'm posting this because I had a hard time figuring this out myself, and hopefully this will save some people a lot of searches and time.