title: How to diagnose a program run by the user from a program run by Windows(run on windows startup)in C#?
body: <p>i have a wpf program that can run in windows startup. i want to run
  program in <code>WindowState.Normal</code> mode when user run the program and
  in <code>WindowState.Minimized</code> when windows run the program at startup. but problem
  is that i do not know how to distinguish between them.</p>