title: Determine how the app has been launched - by user or by auto launch
body: <p>My Windows app can be launched by user or by autolaunch (registry, 'Software\Microsoft\Windows\CurrentVersion\Run').</p>
  
  <p>Is it possible to determine the way my app has been launched?</p>
  
  <p>The only way that I found - to add command line parameters. Something like <code>myapp.exe -auto</code> and <code>myapp.exe -user</code>. Is it possible to avoid command line parameters?</p>