title: How to start Outlook minimized?
body: <p>I think starting a process minimized should be simple but I had no luck with outlook. How can I start Outlook minimized?</p>
  
  <p>My attempt was this:    </p>
  
  <pre><code>[DllImport("user32.dll")]
  private static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow);
  
  static void Main(string[] args)
  {
      ProcessStartInfo startInfo = new ProcessStartInfo();
      startInfo.FileName = "OUTLOOK.EXE";
  
      IntPtr hWnd = Process.Start(startInfo).Handle;
  
      bool state = false;
      if (!hWnd.Equals(IntPtr.Zero))
          state = ShowWindowAsync(hWnd, 2);
  
      // window values: http://msdn.microsoft.com/en-us/library/windows/desktop/ms633548(v=vs.85).aspx
  
      Console.WriteLine(state.ToString());
      Console.Read();
  }
  </code></pre>