To make your program start when Windows does, add the following entry to the Registry:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\. For the Value you would enter your Application name (i.e MyApp) and for the Data, you would enter the path to it, i.e C:\MyApp.exe.