title: Get processes by execution path
body: <p>Here is method which must return processes by path to executeble file.
  But when i try to call this method i have an exception Win32Exception "Access is denied".
  So how to do it right?</p>
  
  <pre><code>private static List&lt;Process&gt; GetProcessByFilename(string filename)
          {
              List&lt;Process&gt; processes = new List&lt;Process&gt;();
  
              foreach (var process in Process.GetProcesses())
              {
                  if (process.MainModule.FileName == filename)
                  {
                      processes.Add(process);
                  }
              }
              return processes;
          }
  </code></pre>