title: get all startup processes in windows
body: <p>I want to list all the processes that runs on windows startup using c#. I've tried the code </p>
  
  <pre><code>string keyPath = @"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run";       
  RegistryKey key = 
        Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run");
  key.GetValueNames()
  key.GetValue(Processname).toString()
  </code></pre>
  
  <p>This code is giving me some startup items that I can see in taskbar startup, but not all items. </p>
  
  <p>Using windows 8.1 64 bit</p>