This shows you how to add to the registry Run Key so that you can start applications on startup. This uses no API calls to do so. Rather, it generates a reg file and imports that.
This was done to accompish the task of adding registry keys, but not wanting to figure out the API calls necessary. It's fast, it works, and it's easy.