If you want to run the program when windows starts, create your application as a service which then is set to start automatically.
If you want the application to start when user logs in, you can define it in startup folder of Start menu or for example put it into
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
in the registry.