Programmatically make program start on Windows start

: : How can I make an Delphi application start every time that Windows starts?

: Create a shortcut for your application and drag the shortcut (or copy and paste the shortcut) to: : C:\Documents and Settings\YOUR_WINDOWS_USER_NAME\Start Menu\Programs\Startup----------------------------

Thanks for your swift answer, I already knew this myself ;)

But I want to do this under program control, from within my Delphi application. For example, a Delphi app that asks "Autostart with Windows?" and if "yes" is clicked, it does all the necessary things. And vice versa, on clicking "no" the app should not anymore start at the next Windows startup.